https://github.com/babilonczyk/graphql-api
A test api using graphQL in Rails application
https://github.com/babilonczyk/graphql-api
Last synced: 4 months ago
JSON representation
A test api using graphQL in Rails application
- Host: GitHub
- URL: https://github.com/babilonczyk/graphql-api
- Owner: babilonczyk
- Created: 2023-08-22T19:49:53.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-26T19:39:30.000Z (over 2 years ago)
- Last Synced: 2023-08-26T20:42:00.271Z (over 2 years ago)
- Language: Ruby
- Size: 51.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GraphQL API
This is small graphQL API written in Ruby on Rails. The purpose of this was to dig into how GraphQL works, so it doesn't handle Authentication and Authorization.
```mermaid
---
Entities
---
erDiagram
SOLAR_SYSTEM ||--|| STAR : "1 to 1"
SOLAR_SYSTEM ||--|{ PLANET : "1 to n"
```
How to start:
* run `rails db:migrate`
* run `rails db:seed` to populate your db with data of our Solar System
* run `rails s`
* download [GraphiQL](https://github.com/graphql/graphiql) app - playground for GraphQL
* use `http://localhost:3000/graphql` endpoint
I've included example queries and mutations in specs.
To Do:
- [ ] Add mutations for Stars and Planets
- [ ] Add Authentication & Authorization