This is a Next.js project for Medium series Next.js + Typescript + GraphQL + MongoDB = ❤️.
- Part I — Setuphttps://medium.com/@otociulis/next-js-typescript-graphql-mongodb-%EF%B8%8F-7c342319206b
- Part II — GraphQL integration
- Part III — Mutations and MongoDB integration
First, install all the dependencies:
npm install
# or
yarn
Then, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result. The GraphQL Playground console is available at http://localhost:3000/api/graphql.
To generate Typescript files from GraphQL schema run following command:
npm run generate
# or
yarn generate