rentrop / serverless-postgraphql Goto Github PK
View Code? Open in Web Editor NEWServerless GraphQL endpoint for PostgresSQL using AWS, serverless and PostGraphQL
License: MIT License
Serverless GraphQL endpoint for PostgresSQL using AWS, serverless and PostGraphQL
License: MIT License
how old was that? and does anyone even care about?
runtime: nodejs4.3
listed from https://github.com/serverless/examples#community-examples
Thanks for making this repo. We're evaluating postgraphql on lambda and this has been super helpful. I have been looking at targeting v4 (aka PostGraphile). It looks like there's introspection caching built in (with "plugin support" that I need to learn more about).
Do you still have energy for this project? Would you be keen to see a PR for v4 support?
I've followed the how to and am not able to get a good response. I can run the non serverless postgraphsql
forum example just fine locally and query it using graphiql.
My pg connection after sls deploy
looks like this:
"config": {
"PGCON": "postgres://example:serverless@MY_PG_ENDPOINT:5432/forumexample"
},
And my YML:
environment:
PGCON: postgres://example:serverless@MY_PG_ENDPOINT:5432/forumexample
JWT_SECRET: keyboard_kitten
When I try to run graphiql using postgraphql-local
or from the pgcon url using this query:
{
postById(id: 3) {
id
headline
}
}
yields:
{
"errors": [
{
"message": "permission denied to set role \"forum_example_anonymous\""
}
]
}
Same query with Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhIjoxLCJiIjoyLCJjIjozfQ.hxhGCCCmGV9nT1slief1WgEsOsfdnlVizNrODxfh1M8
:
{
"errors": [
{
"message": "invalid signature"
}
]
}
Testing with a custom modified JWT Token I get (expected this):
{
"errors": [
{
"message": "jwt audience invalid. expected: postgraphql"
}
]
}
My remote endpoint deployment response from going to /graphql is this:
{"errors":[{"name":"error","length":113,"severity":"ERROR","code":"42501","file":"guc.c","line":"9604","routine":"call_string_check_hook"}]}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.