This is a Next.js project bootstrapped with create-next-app
.
First, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
To use GraphQL in this project, add the schema in graphql
directory with the file <filename>.graphql
.
Later run the following command
yarn gql
This command will generate all the types associated with the query and will output a react hook, which can be used to interact with the server.