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

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

Overview

Instance Method Summary collapse

Instance Method Details

#apollo_externalvoid

This method returns an undefined value.

Adds the [‘@external` directive](www.apollographql.com/docs/federation/federated-types/federated-directives/#external) 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 'lib/elastic_graph/apollo/schema_definition/apollo_directives.rb', line 65

def apollo_external
  directive "external"
end