graphql-ruby Questions
1
I am using the [graphql][1] gem to build out a GraphQL API.
When defining inputs for example --
Inputs::BranchInput = GraphQL::InputObjectType.define do
name 'BranchInput'
argument :scope, ty...
Insubordinate asked 11/4, 2018 at 18:0
3
From this guide I don't understand how we can add authorization on a field in graphql-ruby.
I understand how we can deny access to an entire object but I don't see how we can prevent access to jus...
Fauteuil asked 9/3, 2019 at 8:29
3
Solved
Generally a query is when you fetch data and mutation is when you manipulate data. But how would I implement a mutation without any arguments?
In my particular case I have delete and create 2fa t...
Krypton asked 23/1, 2018 at 22:51
1
Solved
I have QueryType
Types::QueryType = GraphQL::ObjectType.define do
name 'Query'
field :allProjects, function: Resolvers::Projects
end
And Resolver like this
require 'search_object/plugin/gr...
Redaredact asked 21/8, 2018 at 22:21
1
Solved
How can I generate a schema.json like the code in the links?
https://github.com/exAspArk/graphql-on-rails/blob/master/schema.json
https://github.com/Shopify/graphql-js-client/blob/master/schema.js...
Brister asked 11/4, 2019 at 0:10
0
I'm trying to update my mutation with variables and receive such error:
Duplicate type definition found for name 'SignInInput' at 'Input field
SignInInput.signInInput'
My mutation code:
modu...
Udometer asked 6/2, 2019 at 11:35
1
Solved
I'd like to get fields resolved by another field.
I have a list generated according to some arguments and would like to update the total field
My approach is probably incorrect.
Obviously, I'm t...
Evulsion asked 22/10, 2018 at 17:59
4
I'm not the only one who doesn't know how to use Datetime types with GraphQL-Ruby: https://github.com/rmosolgo/graphql-ruby-demo/issues/27, as you can see there are 18 people like me.
How can I us...
Porterporterage asked 24/12, 2017 at 11:28
3
Solved
My goal is to test the types of my GraphQL schema in ruby, I'm using the graphql-ruby gem.
I couldn't find any best practice for this, so I'm wondering what's the best way to test the fields and t...
Leveridge asked 6/7, 2018 at 4:12
2
Solved
What should be the result of a delete mutation in Graphql? I'm using the graphql-ruby gem. Here's an example of my mutation, but I'm just not sure what I should be returning as the response.
Mutat...
Flaccid asked 22/5, 2017 at 19:2
1
© 2022 - 2024 — McMap. All rights reserved.