Skip to content

cahfelix/graphql-and-mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Pré-requisitos

Instalando dependências

$ yarn install

Rode o projeto

$ yarn start

Acesse

http://localhost/4000/api

Brinque

Exemplo 1 - Querys - Consulta

{
  getUsers {
    name
    email
  }
  getUser(id: 2) {
    name
  }
}

Exemplo 2 - Mutation - Insert

mutation {
  createUser(input: {
    name: "Chuva Regina",
    email: "chuva@chuvalinda.com.br",
    password: "chuva"
  }) {
    id
    name
    email
    password
  }
}

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published