class GraphQL::Introspection::EntryPoints
Public Instance Methods
__schema()
click to toggle source
# File lib/graphql/introspection/entry_points.rb, line 9 def __schema # Apply wrapping manually since this field isn't wrapped by instrumentation schema = @context.query.schema schema_type = schema.introspection_system.schema_type schema_type.metadata[:type_class].authorized_new(schema, @context) end
__type(name:)
click to toggle source
# File lib/graphql/introspection/entry_points.rb, line 16 def __type(name)) type = @context.warden.get_type(name) if type # Apply wrapping manually since this field isn't wrapped by instrumentation type_type = @context.schema.introspection_system.type_type type_type.metadata[:type_class].authorized_new(type, @context) else nil end end