howtographql / Graphql Ruby
Licence: mit
GraphQL Ruby example for How To GraphQL
Stars: ✭ 231
Programming Languages
ruby
36898 projects - #4 most used programming language
Projects that are alternatives of or similar to Graphql Ruby
Eliasdb
EliasDB a graph-based database.
Stars: ✭ 611 (+164.5%)
Mutual labels: graphql, graphql-server, tutorial
Agoo
A High Performance HTTP Server for Ruby
Stars: ✭ 679 (+193.94%)
Mutual labels: graphql, graphql-server, rails
Graphjin
GraphJin - Build APIs in 5 minutes with GraphQL. An instant GraphQL to SQL compiler.
Stars: ✭ 1,264 (+447.19%)
Mutual labels: graphql, graphql-server, rails
Gqlify
[NOT MAINTAINED]An API integration framework using GraphQL
Stars: ✭ 182 (-21.21%)
Mutual labels: graphql, graphql-server
Gqtx
Code-first type-safe GraphQL Server without codegen or metaprogramming
Stars: ✭ 173 (-25.11%)
Mutual labels: graphql, graphql-server
Storefront Api
Storefront GraphQL API Gateway. Modular architecture. ElasticSearch included. Works great with Magento1, Magento2, Spree, OpenCart, Pimcore and custom backends
Stars: ✭ 180 (-22.08%)
Mutual labels: graphql, graphql-server
Hotchocolate
Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Banana Cake Pop the awesome Monaco based GraphQL IDE.
Stars: ✭ 3,009 (+1202.6%)
Mutual labels: graphql, graphql-server
Grial
A Node.js framework for creating GraphQL API servers easily and without a lot of boilerplate.
Stars: ✭ 194 (-16.02%)
Mutual labels: graphql, graphql-server
Djangochannelsgraphqlws
Django Channels based WebSocket GraphQL server with Graphene-like subscriptions
Stars: ✭ 203 (-12.12%)
Mutual labels: graphql, graphql-server
Pop
Monorepo of the PoP project, including: a server-side component model in PHP, a GraphQL server, a GraphQL API plugin for WordPress, and a website builder
Stars: ✭ 160 (-30.74%)
Mutual labels: graphql, graphql-server
Graphql Rails Blog
Blog App built with Rails 5, React and GraphQL
Stars: ✭ 160 (-30.74%)
Mutual labels: graphql, rails
Graphql2rest
GraphQL to REST converter: automatically generate a RESTful API from your existing GraphQL API
Stars: ✭ 181 (-21.65%)
Mutual labels: graphql, graphql-server
Graphql Jpa
JPA Implementation of GraphQL (builds on graphql-java)
Stars: ✭ 156 (-32.47%)
Mutual labels: graphql, graphql-server
Graphql Spqr Spring Boot Starter
Spring Boot 2 starter powered by GraphQL SPQR
Stars: ✭ 187 (-19.05%)
Mutual labels: graphql, graphql-server
Rails Devise Graphql
A Rails 6 boilerplate to create your next Saas product. Preloaded with graphQL, devise, JWT, CanCanCan, RailsAdmin, Rubocop, Rspec, i18n and more.
Stars: ✭ 199 (-13.85%)
Mutual labels: graphql, graphql-server
36 Graphql Concepts
📜 36 concepts every GraphQL developer should know.
Stars: ✭ 209 (-9.52%)
Mutual labels: graphql, graphql-server
Modern Graphql Tutorial
📖 A simple and easy GraphQL tutorial to get started with GraphQL.
Stars: ✭ 219 (-5.19%)
Mutual labels: graphql, tutorial
Apollo Server
🌍 Spec-compliant and production ready JavaScript GraphQL server that lets you develop in a schema-first way. Built for Express, Connect, Hapi, Koa, and more.
Stars: ✭ 12,145 (+5157.58%)
Mutual labels: graphql, graphql-server
graphql-ruby
Installation
Install dependencies:
bundle install
rails db:setup
Starting the server:
rails server
Opening the application:
open http://localhost:3000/
Interesting Files:
- GraphqlController - GraphQL controller (api entry point)
- GraphqlTutorialSchema - the schema definition
- Mutations - root mutations
- Queries - root queries
- UserType - record type
- VoteType - record type
- LinkType - record type
- DateTimeType - scalar type
- LinksSearch - complex search resolver and its tests
- CreateLink - mutation and its tests
- CreateUser - mutation and its tests
- CreateVote - mutation and its tests
- SignInUser - mutation and its tests
Sample GraphQL Queries
List first 10 links, containing "example":
{
allLinks(first: 10, filter: {descriptionContains: "example"}) {
id
url
description
createdAt
postedBy {
id
name
}
}
}
Creates new user:
mutation {
createUser(
name: "Radoslav Stankov",
authProvider: {
email: { email: "[email protected]", password: "123456" }
}
) {
id
email
name
}
}
Creates new user token:
mutation {
signinUser(email: {email: "[email protected]", password: "123456"}) {
token
user {
id
email
name
}
}
}
Creates new link:
mutation {
createLink(url:"http://example.com", description:"Example") {
id
url
description
postedBy {
id
name
}
}
}
Creates new vote:
mutation {
createVote(linkId:"TGluay0yMQ==") {
user {
id
name
}
link {
id
url
description
}
}
}
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].