Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
January 26, 2022 10:53 pm GMT

Generic CRUD with GraphQL Next.js TypeScript & MongoDb

Github Repository

https://github.com/idurar/generic-graphql-crud-next-js-mongodb

Install

yarn Install

Setup & connect to your MongoDb Database

1) change this file name .env.local.tmp to .env.local2) open .env.local and paste your MongoDB url here :  MONGODB_URI="your-mongodb-uri"

Generate schema and Type

yarn generate

Getting Started

First, run the development server:

yarn dev

Try your Graphql

http://localhost:3000/api/graphql

Original Link: https://dev.to/lalami/graphql-generic-crud-with-nextjs-typescript-mongodb-4peg

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To