https://github.com/steveluscher/zero-to-graphql
Examples of GraphQL endpoints created using various languages/frameworks.
https://github.com/steveluscher/zero-to-graphql
Last synced: 4 months ago
JSON representation
Examples of GraphQL endpoints created using various languages/frameworks.
- Host: GitHub
- URL: https://github.com/steveluscher/zero-to-graphql
- Owner: steveluscher
- Created: 2016-04-20T01:04:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-08-21T14:43:20.000Z (over 2 years ago)
- Last Synced: 2025-05-25T19:09:14.071Z (8 months ago)
- Language: JavaScript
- Size: 154 KB
- Stars: 412
- Watchers: 17
- Forks: 76
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-list - zero-to-graphql
README
# zero-to-graphql
In this repository, you will find examples of GraphQL endpoints created using various languages atop different frameworks. The goal is to demonstrate how you might go about creating a GraphQL endpoint atop your *existing* infrastructure, whatever that may be, without having to rewrite your data model.
## Watch the original presentation
[](https://youtu.be/UBGzsb2UkeY)
## The examples' data model
Every example in this repository exposes a `Person` data model using an API considered idiomatic for the framework in question (eg. ActiveRecord for Rails). The type definition of the `Person` model looks like this:
type Person {
id: String!
first_name: String!
last_name: String!
username: String!
email: String!
friends: [Person]
}
## Running the examples
Each example features its own `README.md` file to help you get up and running.
## Contributing
See a language or framework for which there is no example? Feel free to send us a pull request! Expose the data model outlined above using whatever API you like, be sure to provide some seed data, and write a `README` that outlines all of the steps needed to get up and running with an instance of GraphiQL that you can use to issue queries to your new GraphQL endpoint.