class GraphQL::Language::Nodes::FragmentDefinition
A reusable fragment, defined at document-level.
Public Instance Methods
initialize_node(name: nil, type: nil, directives: [], selections: [])
click to toggle source
@!attribute type
@return [String] the type condition for this fragment (name of type which it may apply to)
# File lib/graphql/language/nodes.rb, line 402 def initialize_node(name: nil, type: nil, directives: [], selections: []) @name = name @type = type @directives = directives @selections = selections end