Module: ElasticGraph::Apollo::SchemaDefinition::ApolloDirectives::Tag

Overview

Supports Apollo’s @tag directive.

Instance Method Summary collapse

Instance Method Details

#apollo_tag(name:) ⇒ void

This method returns an undefined value.

Adds the @tag directive to the schema element.

Examples:

Add @tag to a type

ElasticGraph.define_schema do |schema|
  schema.object_type "Campaign" do |t|
    t.apollo_tag name: "public"
  end
end

See Also:



280
281
282
# File 'elasticgraph-apollo/lib/elastic_graph/apollo/schema_definition/apollo_directives.rb', line 280

def apollo_tag(name:)
  directive "tag", name: name
end