Sha256: 20c5f47efd46b39d16d9645dd3ce75ce9279448d82c25efcad123116ff0f4e7a
Contents?: true
Size: 788 Bytes
Versions: 3
Compression:
Stored size: 788 Bytes
Contents
GraphQL::Introspection::DirectiveType = GraphQL::ObjectType.new do |t, type, field| t.name "__Directive" t.description "A query directive in this schema" t.fields({ name: field.build(type: !type.String, desc: "The name of this directive"), description: field.build(type: type.String, desc: "The description for this type"), args: GraphQL::Introspection::ArgumentsField, onOperation: field.build(type: !type.Boolean, property: :on_operation?, desc: "Does this directive apply to operations?"), onFragment: field.build(type: !type.Boolean, property: :on_fragment?, desc: "Does this directive apply to fragments?"), onField: field.build(type: !type.Boolean, property: :on_field?, desc: "Does this directive apply to fields?"), }) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
graphql-0.4.0 | lib/graph_ql/introspection/directive_type.rb |
graphql-0.3.0 | lib/graph_ql/introspection/directive_type.rb |
graphql-0.2.0 | lib/graph_ql/introspection/directive_type.rb |