https://github.com/iagodahlem/graphql-getting-started
:school: Studying GraphQL.
https://github.com/iagodahlem/graphql-getting-started
express express-graphql graphql javascript nodejs
Last synced: about 1 month ago
JSON representation
:school: Studying GraphQL.
- Host: GitHub
- URL: https://github.com/iagodahlem/graphql-getting-started
- Owner: iagodahlem
- Created: 2017-12-05T19:21:58.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-06T20:22:09.000Z (over 8 years ago)
- Last Synced: 2025-04-01T19:58:05.618Z (about 1 year ago)
- Topics: express, express-graphql, graphql, javascript, nodejs
- Language: JavaScript
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# graphql-getting-started
Studying GraphQL.
## Install
Simple run `yarn`.
## Running
For development run `yarn dev`, then visit [localhost:3000/graphql](http://localhost:3000/graphql).
Or for productoin run `yarn start`.
## Queries
#### Get video by id
```js
{
video(id: "a") {
id
title
duration
released
}
}
```
#### Get videos
```js
{
videos {
id
title
duration
released
}
}
```
## Mutations
#### Create video
```js
mutation M {
createVideo(video: {
title: "Foo Video"
duration: 400
released: false
}) {
id
title
}
}
```
## Contributing
1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -m 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D
## License
[MIT License](http://iagodahlem.mit-license.org/) © Iago Dahlem