Sha256: f390acbfee40db85c13a2901a91b097063558cd8931c41fdae5ccc4a34496987
Contents?: true
Size: 961 Bytes
Versions: 3
Compression:
Stored size: 961 Bytes
Contents
GraphQL::Introspection::SchemaType = GraphQL::ObjectType.new do |t, type| t.name "__Schema" t.description "A GraphQL schema" t.fields({ types: GraphQL::Field.new { |f| f.type !type[!GraphQL::Introspection::TypeType] f.description "Types in this schema" f.resolve -> (obj, arg, ctx) { obj.types.values } }, directives: GraphQL::Field.new { |f| f.type !type[!GraphQL::Introspection::DirectiveType] f.description "Directives in this schema" f.resolve -> (obj, arg, ctx) { obj.directives.values } }, queryType: GraphQL::Field.new { |f| f.type !GraphQL::Introspection::TypeType f.description "The query root of this schema" f.resolve -> (obj, arg, ctx) { obj.query } }, mutationType: GraphQL::Field.new { |f| f.type GraphQL::Introspection::TypeType f.description "The mutation root of this schema" f.resolve -> (obj, arg, ctx) { obj.mutation } }, }) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
graphql-0.4.0 | lib/graph_ql/introspection/schema_type.rb |
graphql-0.3.0 | lib/graph_ql/introspection/schema_type.rb |
graphql-0.2.0 | lib/graph_ql/introspection/schema_type.rb |