Method: GraphQL::Language::DocumentFromSchemaDefinition#build_directive_node
- Defined in:
- lib/graphql/language/document_from_schema_definition.rb
#build_directive_node(directive) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
162 163 164 165 166 167 168 169 170 |
# File 'lib/graphql/language/document_from_schema_definition.rb', line 162 def build_directive_node(directive) GraphQL::Language::Nodes::DirectiveDefinition.new( name: directive.graphql_name, repeatable: directive.repeatable?, arguments: build_argument_nodes(@types.arguments(directive)), locations: build_directive_location_nodes(directive.locations), description: directive.description, ) end |