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

Overview

Supports Apollo’s @inaccessible directive.

Instance Method Summary collapse

Instance Method Details

#apollo_inaccessiblevoid

This method returns an undefined value.

Adds the @inaccessible directive 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 'elasticgraph-apollo/lib/elastic_graph/apollo/schema_definition/apollo_directives.rb', line 83

def apollo_inaccessible
  directive "inaccessible"
end