mohamedlotfe / graphQL-server-nestjs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.

NPM Version Package License NPM Downloads Travis Linux Coverage Gitter Backers on Open Collective Sponsors on Open Collective

Description

A GraphQL server-side repository using Nest framework + typescript

Installation

$ yarn istall

Running the app

# development
$ yarn start

# watch mode
$ yarn run start:dev

# production mode
$ yarn run start:prod

Demo

Then open graphql. Then try

mutation{
  createUser(createUserData: {email:"m@m.com", age:25}){
    email
    userId
    isSubscribed
    age
  }
}

query {
  user(userId: "15037258-7a3c-4434-a410-d63ed393604b"){
     email
    userId
    isSubscribed
    age
  }
}

License

Nest is MIT licensed.

About


Languages

Language:TypeScript 100.0%