Module: ApolloFederation::Scalar::ClassMethods
- Includes:
- HasDirectives
- Defined in:
- lib/apollo-federation/scalar.rb
Instance Method Summary
collapse
#add_directive, #federation_directives, #own_federation_directives
Instance Method Details
#inaccessible ⇒ Object
18
19
20
|
# File 'lib/apollo-federation/scalar.rb', line 18
def inaccessible
add_directive(name: 'inaccessible')
end
|
#tag(name:) ⇒ Object
14
15
16
|
# File 'lib/apollo-federation/scalar.rb', line 14
def tag(name:)
add_directive(name: 'tag', arguments: [name: 'name', values: name])
end
|