{"action":"opened","issue":{"url":"https://api.github.com/repos/calebmer/postgraphql/issues/44","repository_url":"https://api.github.com/repos/calebmer/postgraphql","labels_url":"https://api.github.com/repos/calebmer/postgraphql/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/calebmer/postgraphql/issues/44/comments","events_url":"https://api.github.com/repos/calebmer/postgraphql/issues/44/events","html_url":"https://github.com/calebmer/postgraphql/issues/44","id":154116046,"number":44,"title":"Embedded / Library Usage","user":{"login":"grahamb","id":146111,"avatar_url":"https://avatars.githubusercontent.com/u/146111?v=3","gravatar_id":"","url":"https://api.github.com/users/grahamb","html_url":"https://github.com/grahamb","followers_url":"https://api.github.com/users/grahamb/followers","following_url":"https://api.github.com/users/grahamb/following{/other_user}","gists_url":"https://api.github.com/users/grahamb/gists{/gist_id}","starred_url":"https://api.github.com/users/grahamb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grahamb/subscriptions","organizations_url":"https://api.github.com/users/grahamb/orgs","repos_url":"https://api.github.com/users/grahamb/repos","events_url":"https://api.github.com/users/grahamb/events{/privacy}","received_events_url":"https://api.github.com/users/grahamb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-10T21:56:09Z","updated_at":"2016-05-10T21:56:09Z","closed_at":null,"body":"Stemming from a [gitter discussion](https://gitter.im/calebmer/postgraphql?at=57324f9df36daf63798e718f). \r\n\r\nI'm wondering what @calebmer and others thoughts are surrounding using postgraphql in an embedded or library fashion. I'm working on an express app right now that will be querying an external graphql server for its user-facing functionality. Internally, the app has a very simple postgres DB for storing users, and I'd like to expose a graphql interface to it for building an admin dashboard. I've been able to make it work by basically copying the logic from [createServer](https://github.com/calebmer/postgraphql/blob/1388542088f2d7bb783ac245550127ab6764c91d/src/createServer.js#L40) and implementing it in an [Express route](https://github.com/sfu/student-dashboard/commit/73b2d9e3ffe95523ece5aa0c45cb3c1bf33a9161). \r\n\r\nOne potential thing I could see being useful it the ability to specify the client. I'm using [knex](knexjs.org) everywhere else in the app, but for this portion I need to manually import pg and specify the client."}}