I am brand new to using graphql-yoga 3 in conjunction with next js for creating APIs with GraphQL. Unfortunately, my routes at /api/graphql
are returning a 404 error even though I have followed the example provided here. The default page loads fine, but I can't seem to figure out why the specific routes are not being found.
I see this message on /api
If you were expecting this page to be the GraphQL route, you need to configure Yoga. The GraphQL route is currently set to /api/graphql.
Any advice or recommended reading material would be much appreciated.
Check out the code sandbox here