Module: ElasticGraph::Apollo::SchemaDefinition::ApolloDirectives::Inaccessible

Overview

Instance Method Summary collapse

Instance Method Details

#apollo_inaccessiblevoid

This method returns an undefined value.

Adds the [‘@inaccessible` directive](www.apollographql.com/docs/federation/federated-types/federated-directives/#inaccessible) to the schema element.

Examples:

Add ‘@inaccessible` to a type

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


83
84
85
# File 'lib/elastic_graph/apollo/schema_definition/apollo_directives.rb', line 83

def apollo_inaccessible
  directive "inaccessible"
end