Module: ApolloFederation::Union::ClassMethods

Includes:
HasDirectives
Defined in:
lib/apollo-federation/union.rb

Instance Method Summary collapse

Methods included from HasDirectives

#add_directive, #federation_directives, #own_federation_directives

Instance Method Details

#inaccessibleObject



18
19
20
# File 'lib/apollo-federation/union.rb', line 18

def inaccessible
  add_directive(name: 'inaccessible')
end

#tag(name:) ⇒ Object



14
15
16
# File 'lib/apollo-federation/union.rb', line 14

def tag(name:)
  add_directive(name: 'tag', arguments: [name: 'name', values: name])
end