docs/lib/tasks/helper.rb
# We are ignoring connections and built in types for now,
# they should be added when queries are generated.
We are ignoring connections and built in types for now,
they should be added when queries are generated.
We are ignoring connections and built in types for now they should be added when queries are generated .
def objects
        strong_memoize(:objects) do
          mutations = schema.mutation&.fields&.keys&.to_set || []
          graphql_object_types
            .reject { |object_type| object_type[:name]["__"] || object_type[:name] == 'Subscription' } 
            .map do |type|
              name = type[:name]
              type.merge(
                is_edge: name.ends_with?('Edge'),
                is_connection: name.ends_with?('Connection'),
                is_payload: name.ends_with?('Payload') && mutations.include?(name.chomp('Payload').camelcase(:lower)),
                fields: type[:fields] + type[:connections]
              )
            end
        end
      end
def objects strong_memoize ( :objects ) do mutations = schema . mutation &. fields &. keys &. to_set || [ ] graphql_object_types . reject { | object_type | object_type [ :name ] [ "__" ] || object_type [ :name ] == 'Subscription' } . map do | type | name = type [ :name ] type . merge ( is_edge : name . ends_with? ( 'Edge' ) , is_connection : name . ends_with? ( 'Connection' ) , is_payload : name . ends_with? ( 'Payload' ) && mutations . include? ( name . chomp ( 'Payload' ) . camelcase ( :lower ) ) , fields : type [ :fields ] + type [ :connections ] ) end end end
We are ignoring connections and built in types for now,
they should be added when queries are generated.
We are ignoring connections and built in types for now they should be added when queries are generated .
# We ignore introspection and subscription types.