Skip to content

Sample GraphQL server made it with NestJS + Postgres

Notifications You must be signed in to change notification settings

it0dan/nestjs-graphql

Repository files navigation

GraphQL Logo Nest Logo PostgreSQL Logo

A sample application using GraphQL + NestJS + PostgreSQL.

📝 Description

This is a example of a graphQL API with NestJS and MongoDB. With this code you'll be able to make QUERYs and MUTATIONs operations.

💻 What do you need to make it work?

Installation

$ npm install

🚀 Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

🎬 Playing

Mutation example

mutation CreateCustomer {
  createCustomer (
    name: "Jane Doe"
    email: "[email protected]"
    phone: "+555199999-9999"
    address: "rua xpto, número 666. Bairro Proibido"
  ) {
    name
    id
  }
}

Query example

query {
  customers {
    name
    phone
  }
}

🐛 Problem?

If you find trouble to have some fun with this code feel confortable to open a new ISSUE.

But if you find it and know how to solve, please open a PULL REQUEST.

About

Sample GraphQL server made it with NestJS + Postgres

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published