Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/0xr/graphql-js-innovation-day
https://github.com/0xr/graphql-js-innovation-day
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/0xr/graphql-js-innovation-day
- Owner: 0xR
- Created: 2018-09-13T08:50:14.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2015-08-22T11:30:28.000Z (over 9 years ago)
- Last Synced: 2024-11-11T07:09:58.989Z (2 months ago)
- Language: JavaScript
- Size: 123 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# graphql-server
[ ![Codeship Status for RisingStack/graphql-server](https://codeship.com/projects/434da740-03bb-0133-00c5-7a6771ab2ee8/status?branch=master)](https://codeship.com/projects/89250)
GraphQL server with Mongoose (MongoDB) and Node.js## Like this? Check out our GraphQL ORM: [graffiti](https://github.com/RisingStack/graffiti)
**Example GraphQL query:**
```
user(id: "1") {
name
friends {
name
}
}
```**Example response:**
```json
{
"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
```