you start page took to 15 minutes to figure out where to place the server.js file. Not really impressed so far, if you cannot explain how you get started in your https://www.graphql-js.org/docs/getting-started/ page does not give proper instructions.
it does not explain the file structure well, and did not know the server.js file needed to go into the node_modules.
To handle GraphQL queries, we need a schema that defines the Query type, and we need an API root with a function called a “resolver” for each API endpoint. For an API that just returns “Hello world!”, we can put this code in a file named server.js:
you start page took to 15 minutes to figure out where to place the server.js file. Not really impressed so far, if you cannot explain how you get started in your https://www.graphql-js.org/docs/getting-started/ page does not give proper instructions.
it does not explain the file structure well, and did not know the server.js file needed to go into the node_modules.
To handle GraphQL queries, we need a schema that defines the Query type, and we need an API root with a function called a “resolver” for each API endpoint. For an API that just returns “Hello world!”, we can put this code in a file named server.js: