class GraphQL::Language::Nodes::InlineFragment
An unnamed fragment, defined directly in the query with `… { }`
Attributes
directives[RW]
selections[RW]
type[RW]
Public Instance Methods
children()
click to toggle source
# File lib/graphql/language/nodes.rb, line 266 def children directives + selections end
initialize_node(type: nil, directives: [], selections: [])
click to toggle source
@!attribute type
@return [String, nil] Name of the type this fragment applies to, or `nil` if this fragment applies to any type
# File lib/graphql/language/nodes.rb, line 260 def initialize_node(type: nil, directives: [], selections: []) @type = type @directives = directives @selections = selections end
scalars()
click to toggle source
# File lib/graphql/language/nodes.rb, line 270 def scalars [type] end