postgraphile-apollo-server
This module performs some of the boilerplate for using PostGraphile with Apollo Server.
Usage
const pg = ;const ApolloServer = ;const makeSchemaAndPlugin = ; const pgPool = connectionString: processenvDATABASE_URL; { const schema plugin = await ; const server = schema plugins: plugin ; const url = await server; console;} ;
Limitations
Not all PostGraphile library options are supported at this time; for example
watchPg
is not.
Example
https://github.com/graphile/postgraphile-example-apollo-server
Changelog
- v0.1.0 - initial release
- v0.1.1 - fix headers after Apollo Server breaking change (thanks @miguelocarvajal)
TODO:
- Improve this README!
- Compile a list of the unsupported PostGraphile library options
- Don't require a
pgPool
to be passed - allow a connection string instead - Add tests