All Projects → RisingStack → Graphql Server

RisingStack / Graphql Server

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

Programming Languages

javascript
184084 projects - #8 most used programming language

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].