Module: ElasticGraph::Apollo::SchemaDefinition::ApolloDirectives::Extends

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

Overview

Supports Apollo’s @extends directive.

Instance Method Summary collapse

Instance Method Details

#apollo_extendsvoid

This method returns an undefined value.

Adds the @extends directive to the schema element.

Examples:

Add @extends to a type

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


47
48
49
# File 'elasticgraph-apollo/lib/elastic_graph/apollo/schema_definition/apollo_directives.rb', line 47

def apollo_extends
  directive "extends"
end