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

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

Overview

Instance Method Summary collapse

Instance Method Details

#apollo_authenticatedvoid

This method returns an undefined value.

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

def apollo_authenticated
  directive "authenticated"
end