blurymind / graphql-mongodb-api-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GraphQL API Example

The source code for my article on creating and deploying a GraphQL API.

https://medium.com/swlh/build-and-deploy-a-scalable-graphql-api-d912df6b7c28

Run Local Server

yarn install
yarn start

Try subscription and mutation in Graphql Playground or postman

# Write your query or mutation here
mutation createHiveFive {
  createHiveFive(input:{from: "Todor", to: "Gareth2"}){
    id
  }
}

query hiveFives {
  hiveFives{
    from
    to
    id
  }
}

Postman url (Heroku)

https://test-app-mongodb-gql.herokuapp.com/

About

License:MIT License


Languages

Language:JavaScript 95.4%Language:Shell 4.6%