Module: ElasticGraph::Apollo::SchemaDefinition::ApolloDirectives::External

Included in:
FieldExtension, ObjectTypeExtension
Defined in:
elasticgraph-apollo/lib/elastic_graph/apollo/schema_definition/apollo_directives.rb

Overview

Supports Apollo’s @external directive.

Instance Method Summary collapse

Instance Method Details

#apollo_externalvoid

This method returns an undefined value.

Adds the @external directive to the schema element.

Examples:

Add @external to a type

ElasticGraph.define_schema do |schema|
  schema.object_type "Campaign" do |t|
    t.apollo_external
  end
end


65
66
67
# File 'elasticgraph-apollo/lib/elastic_graph/apollo/schema_definition/apollo_directives.rb', line 65

def apollo_external
  directive "external"
end