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

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

Overview

Instance Method Summary collapse

Instance Method Details

#apollo_extendsvoid

This method returns an undefined value.

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

def apollo_extends
  directive "extends"
end