Module: ApolloFederation::Argument
- Includes:
- HasDirectives
- Defined in:
- lib/apollo-federation/argument.rb
Constant Summary collapse
- VERSION_2_DIRECTIVES =
%i[tags inaccessible].freeze
Instance Method Summary collapse
Methods included from HasDirectives
#add_directive, #federation_directives, #own_federation_directives
Instance Method Details
#initialize(*args, **kwargs, &block) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/apollo-federation/argument.rb', line 11 def initialize(*args, **kwargs, &block) add_v2_directives(**kwargs) # Remove the custom kwargs kwargs = kwargs.delete_if do |k, _| VERSION_2_DIRECTIVES.include?(k) end # Pass on the default args: super(*args, **kwargs, &block) end |