The ultimate DAL with PostGraphile part 3: using a JWT coming from AWS Cognito

This is the third post of our ongoing series about using PostGraphile. In this post, we'll learn how to authenticate a user with AWS Cognito and use the incoming JWT with our GraphQL client against PostGraphile. The idea behind this is to leverage PostGraphile support of PostgreSQL's RLS.  Cognito JWTs The first think to understand … Continue reading The ultimate DAL with PostGraphile part 3: using a JWT coming from AWS Cognito

The Ultimate DAL Part 2: Running PostGraphile in an AWS EC2 with RDS

Update Fri 8 Jun 2018 : I was running into CORS issues with the ApolloClient in React. So I enabled CORS with the --cors option while I'm still in development. This is a multipart blog post about using PostGraphile. Part 1 is here. This 2nd post only goes through the tricky steps required to connect … Continue reading The Ultimate DAL Part 2: Running PostGraphile in an AWS EC2 with RDS

The ultimate Data Access Layer with GraphQL Part 1 : Postgraphile

The problem You probably know by now that I hate writing boilerplate data access code. When you have to write a data access layer, I used to think that the code should be generated from the database structure and could be regenerated on demand, otherwise you're losing your time. That was before... The previous solutions … Continue reading The ultimate Data Access Layer with GraphQL Part 1 : Postgraphile