Module: ElasticGraph::Apollo::SchemaDefinition::ApolloDirectives::Shareable

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

Overview

Supports Apollo’s @shareable directive.

Instance Method Summary collapse

Instance Method Details

#apollo_shareablevoid

This method returns an undefined value.

Adds the @shareable directive to the schema element.

Examples:

Add @shareable to a type

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


259
260
261
# File 'elasticgraph-apollo/lib/elastic_graph/apollo/schema_definition/apollo_directives.rb', line 259

def apollo_shareable
  directive "shareable"
end