Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

derekjwilliams/simplepgql

Open more actions menu

Repository files navigation

simplepgql

Very Simple Postgraphile Apollo Server

This little application runs a simple graphql server running at localhost:5000/graphql. Modify the database connection in server.js to connect to a postgres database. Set the USERNAME, PASSWORD, and DB, or just set the environment variable DATABASE_URL as needed:

connectionString: (process.env.DATABASE_URL || 'postgres://USERNAME:PASSWORD@localhost:5432/DB')

If not provided the connection string is postgres://postgres:postgres@localhost/public

Running the server:

node server.js

Docker

Simplest possible Dockerfile is also provided.

Command line for explaining queries

npx postgraphile -c postgres://postgres:postgres@127.0.0.1/blog --watch --enhce-graphiql --allow-explain

About

Very Simple Postgraphile Apollo Server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.