Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/awinabi/sinatra-graphql
Step by step tutorial to write a graphql server in sinatra (ruby)
https://github.com/awinabi/sinatra-graphql
graphql graphql-server ruby sinatra
Last synced: 3 months ago
JSON representation
Step by step tutorial to write a graphql server in sinatra (ruby)
- Host: GitHub
- URL: https://github.com/awinabi/sinatra-graphql
- Owner: awinabi
- Created: 2018-02-23T18:16:21.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-31T14:53:22.000Z (over 1 year ago)
- Last Synced: 2024-06-03T17:44:57.057Z (5 months ago)
- Topics: graphql, graphql-server, ruby, sinatra
- Language: Ruby
- Size: 22.5 KB
- Stars: 39
- Watchers: 6
- Forks: 8
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GraphQL server with Sinatra (Ruby) #
A step by step tutorial to write a graphql server in sinatra (ruby), using the [graphql](https://github.com/rmosolgo/graphql-ruby) gem.
### Steps ###
- STEP 1: Create a Sinatra application
- STEP 2: Add JSON responses
- STEP 3: Add database connections and models with ActiveRecord
- STEP 4: Add graphql and define a query to list speakers
- STEP 5: Adding a Mutation root type
- STEP 6: Define a Mutation for speaker creation### Read more at Medium ###
Part 1 - [Sinatra Setup and Querying](https://medium.com/hash32/graphql-server-with-sinatra-ruby-part-1-fdd664170715)
Part 2 - [Mutations](https://medium.com/hash32/graphql-with-sinatra-ruby-part-2-mutations-d6903699af3e)