DEV Community

Discussion on: Building A GraphQL Server With Next.js API Routes

Collapse
 
adrianspear profile image
adrian-spear

Apologies - this is my first foray into Next so I'm probably making a complete blunder.

I followed your video example and all was well until integrating the Neo4J graphql. Everything compiles etc but when I try getting the schema from Postman/BananaCakePop I get a server 500 error and the following trace in my terminal window:
error - Error: Apollo Server requires either an existing schema, modules or typeDefs

I can't see where I'm going wrong as my graphql.js appears identical to your own apart from a simple 'UserEntity' typedef rather than the article, tag and user types you define.

Any help gratefully received as I'm stumped right now.
Cheers!

Collapse
 
adrianspear profile image
adrian-spear

Luckily, the Neo4J chaps over on Discord pointed me in the right direction to some recent changes for async:
neo4j.com/docs/graphql-manual/curr...
Hope this helps someone.