Questions tagged [postgraphql]

A GraphQL API created by reflection over a PostgreSQL schema.

A GraphQL schema created by reflection over a PostgreSQL schema.

The strongly typed GraphQL data querying language is a revolutionary new way to interact with your server. Similar to how JSON very quickly overtook XML, GraphQL will likely take over REST. Why? Because GraphQL allows us to express our data in the exact same way we think about it.

With PostGraphQL, you can access the power of PostgreSQL through a well designed GraphQL server. PostGraphQL uses PostgreSQL reflection APIs to automatically detect primary keys, relationships, types, comments, and more providing a GraphQL server that is highly intelligent about your data.

PostGraphQL holds a fundamental belief that a well designed database schema should be all you need to serve well thought out APIs. PostgreSQL already has amazing user management and relationship infrastructure, why duplicate that logic in a custom API? PostGraphQL is likely to provide a more performant and standards compliant GraphQL API then any created in house. Focus on your product and let PostGraphQL manage how the data gets to the product.

17 questions
0
votes
1 answer

Not allowed to secure GraphQL endpoint with JWT token

I'm running an express server and just put up JWT protection on my endpoints. I was testing out my /graphql endpoint and I am receiving a 403 Not allowed to provide a JWT token error. My other endpoints work fine, so I don't believe it is an issue…
Ulises Giacoman
  • 522
  • 4
  • 21
0
votes
1 answer

Using an Array in author_id int references user(id)

On https://github.com/calebmer/postgraphql the author shows a schema: create table post ( id serial primary key, author_id int non null references user(id), headline text, body text, … ); How would I have to rewrite the schema if I would…
velop
  • 3,102
  • 1
  • 27
  • 30
1
2