Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

RisingStack/graphql-server

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graphql-server

Codeship Status for RisingStack/graphql-server
GraphQL server with Mongoose (MongoDB) and Node.js

Like this? Check out our GraphQL ORM: graffiti

Example GraphQL query:

user(id: "1") {
  name
  friends {
    name
  }
}

Example response:

{
  "data": {
    "user": {
      "name": "John Doe",
      "friends": [
        {
          "name": "Friend One"
        },
        {
          "name": "Friend Two"
        }]
      }
    }
  }

Example GraphQL mutation:

mutation updateUser($userId: String! $name: String!) {
  updateUser(id: $userId name: $name) {
    name
  }
}

Used technologies

  • GraphQL
  • MongoDB with Mongoose
  • Node/IO.js
  • Babel

How to start

You need iojs or >= Node.js v0.12.x

install dependencies

npm install

seed database

npm run seed

start server

npm start

run client

npm run client

How to test

npm test

About

Example GraphQL server with Mongoose (MongoDB) and Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.