Skip to content

Feedback for “Getting Started With GraphQL.js” #4628

@lars-thurman

Description

@lars-thurman

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions