Questions tagged [graphql-ruby]

a Ruby implementation for GraphQL, a query language used for describing data requirements on complex application data models.

GraphQL is a query language created by Facebook for describing data requirements on complex application data models.

Website graphql-ruby.org

GitHub repository

143 questions
0
votes
1 answer

Add descriptions / comments to graphql arguments?

Is it possible to add a description or a comment to the arguments that are accepted in a query with graphql? I have a Query as follows: field :users, types[Types::UserType] do description 'List of Users. Date parameters accepted in yyyy/mm/dd…
Timmy
  • 366
  • 5
  • 10
0
votes
1 answer

grapgql-ruby using the graphiql interface on a Rails 5 api

This is probably something stupid simple, but not sure how to run the graphiql interface when working with a rails api. Possible this might not be feasible as when i installed the gem, it made reference to not installing graphiql i believe because…
maverick5
  • 171
  • 1
  • 9
0
votes
1 answer

How to write filtering query with graphql?

Currently we are using graphql/graphql-ruby library. I have wrote few queries and mutations as per our requirement. I have the below use case, where i am not sure how to implement it, I have already an query/endpoint named allManagers which return…
Deepak Kumar Padhy
  • 4,128
  • 6
  • 43
  • 79
0
votes
1 answer

Cannot send GraphQL query from Apollo Client to Rails GraphQL backend

I'm using Rails as GraphQL backend using plugin graphql-ruby. On front end size, I'm using Apollo Client for my react/redux project. Here is my front end side: const networkInterface = createNetworkInterface({ uri:…
Trần Kim Dự
  • 5,872
  • 12
  • 55
  • 107
0
votes
1 answer

why does graphql-ruby's boolean type not return false on null value

In the graphql-ruby repo the Boolean type looks like this: GraphQL::BOOLEAN_TYPE = GraphQL::ScalarType.define do name "Boolean" description "Represents `true` or `false` values." coerce_input ->(value, _ctx) { (value == true || value ==…
TamRock
  • 1,490
  • 1
  • 11
  • 27
0
votes
1 answer

graphql-ruby: Int isn't a defined input type (on $first)

I’ve got a question I can’t seemingly resolve on my own. Together with basic Query, Mutation and so on types I’ve made the following type definition: module Types UserType = GraphQL::ObjectType.define do name 'User' description 'A user' …
eploko
  • 5,347
  • 2
  • 28
  • 23
-1
votes
1 answer

How to get Paperclip image URL through GraphQL Ruby

I'm trying to make the Item's Paperclip thumbnail variant available through the GraphQL Ruby gem: app/graphql/types/item_type.rb: class Types::ItemType < Types::BaseObject description 'An item' field :title, String, null: false field…
tirdadc
  • 4,603
  • 3
  • 38
  • 45
-2
votes
1 answer

Real world examples of GraphQL-Ruby APIs to learn from?

What are some of the best real world open source API implementations using Graphql-Ruby? I came across this articles which signifies 5 examples of Javascript Graphql APIs to learn…
Imam
  • 997
  • 7
  • 13
1 2 3
9
10