Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
0 votes
0 answers
165 views

I'm running a GraphQL server using Rails with the graphql-ruby and graphiql-rails gems. I can access the GraphiQL interface successfully. I've set up a POST route at /graphql that maps to graphql#...
Mighty's user avatar
  • 43
0 votes
2 answers
381 views

I'm using the graphql gem and I'm having issue to create a mutation to update a recor. This is where the mutation type is first defined: module Types class MutationType < Types::BaseObject ...
cleicar's user avatar
  • 81
0 votes
1 answer
64 views

In a Rails application using the graphql-ruby gem, how do I make it so that the __typename does not add up to the complexity of the query? By default, the complexity of all fields is 1, but I want to ...
Leticia Esperon's user avatar
3 votes
0 answers
229 views

Introduction After reading Ruby Outperforms C article I got curious how Rust would perform. So I started working on a Ruby gem with Rust extension that implements a GraphQL parser. For the parser ...
Filip Pacanowski's user avatar
0 votes
1 answer
70 views

I have a rails app and I use gem GraphQL. The app contain this type in: app/graphql/types/category_type.rb module Types class CategoryType < Types::BaseObject field :id, ID, null: false ...
Davide Fazio's user avatar
0 votes
1 answer
164 views

I want to make a query return a union type My union type: class LeadType < ::Types::BaseUnion description "Lead" possible_types WebsiteLeadType def self.resolve_type(object, ...
Cristian's user avatar
  • 6,095
0 votes
1 answer
245 views

While working with graphql in Rails, I am using this to define the arguments of a mutation/update that I want to perform on a Product record. So far, this is the file that I use to define the ...
Roger Peixoto's user avatar
0 votes
0 answers
208 views

I was wondering, is there a way to apply the types declared in our Graphql API to format data the same way graphql does it with the return value if a query. There are other ways to do that, (like ...
nekogami's user avatar
  • 326
0 votes
1 answer
172 views

I'm in the process of upgrading my app which uses the following stack: gems: rails 6.1.7 graphql 2.0.19 npms: @apollo/client 3.7.10 @vue/apollo-composable ^4.0.0-beta.4 vue ^3.2.47 This works fine. ...
janosrusiczki's user avatar
0 votes
1 answer
206 views

I'm in the process of building a GraphQL API in a Rails 7 application, using the graphql-ruby gem. In the app, users can create lists of catalogue items, and their lists can be manually ordered. So ...
ScottM's user avatar
  • 10.9k
0 votes
3 answers
812 views

I have a simple graphql-ruby mutation: class Mutations::User::Destroy < Mutations::BaseMutation argument :confirm, GraphQL::Types::Boolean, required: true payload_type GraphQL::Types::Boolean ...
John Smith's user avatar
  • 1,904
0 votes
1 answer
408 views

I am using rails 6.1 graphql gem with Apollo to execute a subscription. It works for normal queries and mutations but rails complains about subscriptions. In my frontend: const cable = ActionCable....
bnassler's user avatar
  • 661
0 votes
1 answer
765 views

I have a type that looks like this: module Types class LeadType < Types::BaseObject graphql_name 'Lead' description 'A lead data query selection' field :first_name, String, null: true ...
theKid's user avatar
  • 621
2 votes
1 answer
1k views

The GraphQL Ruby documentation shows how to define a union type: class Types::CommentSubject < Types::BaseUnion description "Objects which may be commented on" possible_types Types::...
Beetle's user avatar
  • 1,999
3 votes
1 answer
374 views

I'm using the graphql-ruby gem and I have a mutation that updates a record. This is all working, but now I want to include the phony_rails gem to validate phone number. The problem As a dev with more ...
nyphur's user avatar
  • 2,966

15 30 50 per page
1
2 3 4 5
10