Method: GraphQL::Schema#types

Defined in:
lib/graphql/schema.rb

#typesGraphQL::Schema::TypeMap

Returns { name => type } pairs of types in this schema.

Returns:

  • (GraphQL::Schema::TypeMap)

    { name => type } pairs of types in this schema

See Also:

  • Restricted access to members of a schema


317
318
319
320
321
322
# File 'lib/graphql/schema.rb', line 317

def types
  @types ||= begin
    rebuild_artifacts
    @types
  end
end