DEV Community

Cover image for Next.js GraphQL Apollo Server Starter Project
Salah Eddine Lalami
Salah Eddine Lalami

Posted on

Next.js GraphQL Apollo Server Starter Project

Next.js Graphql apollo server starter

Next.js Graphql apollo server starter , with merge schema , combine resolvers generate type in fast and simple way

Github Repo

https://github.com/idurar/next-js-graphql-apollo-server-starter

Install

yarn Install
Enter fullscreen mode Exit fullscreen mode

Generate schema and Type

yarn generate
Enter fullscreen mode Exit fullscreen mode

Getting Started

First, run the development server:

yarn dev
Enter fullscreen mode Exit fullscreen mode

Open http://localhost:3000 with your browser to see the result.

can be accessed on http://localhost:3000/api/graphql. This endpoint can be edited in pages/api/graphql.ts.

Image cover : thanks to https://unsplash.com/@tateisimikito

Discussion (0)