Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mbchoa/github-gql
GraphQL server for Github API
https://github.com/mbchoa/github-gql
apollo expressjs graphql
Last synced: 8 days ago
JSON representation
GraphQL server for Github API
- Host: GitHub
- URL: https://github.com/mbchoa/github-gql
- Owner: mbchoa
- License: mit
- Created: 2017-12-28T05:42:38.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-07-27T08:08:00.000Z (over 4 years ago)
- Last Synced: 2024-10-28T08:28:10.164Z (about 2 months ago)
- Topics: apollo, expressjs, graphql
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# github-gql
GraphQL server for Github API### Overview
Basic GraphQL server which wraps the Github Users API endpoint. Created a `User` schema and a corresponding `Query` schema
to fetch a user's Github user data with the provided `username` in the query.### Development
1. Run `npm run watch` to bring up GraphQL server at `http://localhost:3000`
2. Navigate to `http://localhost:3000/graphiql` to play around with server using GraphQL IDE
3. Enter the following query to fetch Github userdata with username you provided
4. Look at the `User.js` schema to see what other fields are supported and add them in query to see additional user data```javascript
query {
user(username:"yourusername") {
id
}
}
```