Tag: graphql-ruby
-
Rails GraphQL query on nested type
0 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 field :name, String, null: false field :weight, Integer, null: false field :parent_id, Integer field :categories, [Types::CategoryType] field :shoes, [Types::ShoeType] def categories object.categories.all end def shoes() object.shoes.all…