join-monster / join-monster-graphql-tools-adapter

Use Join Monster to fetch your data with Apollo Server.
140 stars 20 forks source link

Readme instructions: error with PG: "Cannot return null for non-nullable field User.id." #14

Open frederikhors opened 6 years ago

frederikhors commented 6 years ago

REPRODUCTION HERE: https://glitch.com/edit/#!/postgres-join-monster-1

It seems something is broken in your Readme instructions.

I reproduced it and it gives to me an error: "Cannot return null for non-nullable field User.id."

Query:

query {
  user(id: 1) {
    id
    fullName
    email
    posts {
      id
      body
      numComments
      comments {
        id
        body
        userId
      }
    }
  }
}