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

Overview

Instance Method Summary collapse

Instance Method Details

#apollo_tag(name:) ⇒ void

This method returns an undefined value.

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

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