Module: ElasticGraph::Apollo::SchemaDefinition::ApolloDirectives::Authenticated

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

Overview

Supports Apollo’s @authenticated directive.

Instance Method Summary collapse

Instance Method Details

#apollo_authenticatedvoid

This method returns an undefined value.

Adds the @authenticated directive to the schema element.

Examples:

Add @authenticated to a type

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


29
30
31
# File 'elasticgraph-apollo/lib/elastic_graph/apollo/schema_definition/apollo_directives.rb', line 29

def apollo_authenticated
  directive "authenticated"
end