If I add this query to my `schema.graphql`, `graph...
# orm-help
k
If I add this query to my
schema.graphql
,
graphql codegen -p app
fails with error:
UnhandledPromiseRejectionWarning: Error: TypeError: Cannot read property 'type' of undefined
Copy code
search(id: ID!, radius: Int!): [Apartment!]!
It seems it has a problem with the array because if I change the line to this (everything else remains the same), it works:
Copy code
search(id: ID!, radius: Int!): Apartment!
Any suggestions? (edit: the graphql server works perfectly with both versions, only the
graphql codegen
command fails)