https://github.com/tb/node-graphql-react-demo
https://github.com/tb/node-graphql-react-demo
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/tb/node-graphql-react-demo
- Owner: tb
- License: mit
- Created: 2016-11-07T22:36:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-07T22:38:09.000Z (over 9 years ago)
- Last Synced: 2025-02-09T17:17:59.197Z (over 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-graphql-react-demo
Based on [Tutorial: How to build a GraphQL server](https://medium.com/apollo-stack/tutorial-building-a-graphql-server-cddaa023c035#.wy5h1htxs)
Then open [http://localhost:8080/graphql](http://localhost:8080/graphql)
When you paste this on the left:
Posts
```
{
posts {
id
title
author {
firstName
lastName
}
}
}
```
Post
```
{
post(id: 1) {
id
title
author {
id
firstName
lastName
posts {
id
title
}
}
}
}
```
getGitHubUserOrgs
```
{
getGitHubUserOrgs(username: "tb") {
id
login
url
avatar_url
}
}
```