Class: GraphQL::Stitching::Plan::Op
- Inherits:
-
Struct
- Object
- Struct
- GraphQL::Stitching::Plan::Op
- Defined in:
- lib/graphql/stitching/plan.rb
Instance Attribute Summary collapse
-
#after ⇒ Object
Returns the value of attribute after.
-
#if_type ⇒ Object
Returns the value of attribute if_type.
-
#location ⇒ Object
Returns the value of attribute location.
-
#operation_type ⇒ Object
Returns the value of attribute operation_type.
-
#path ⇒ Object
Returns the value of attribute path.
-
#resolver ⇒ Object
Returns the value of attribute resolver.
-
#selections ⇒ Object
Returns the value of attribute selections.
-
#step ⇒ Object
Returns the value of attribute step.
-
#variables ⇒ Object
Returns the value of attribute variables.
Instance Method Summary collapse
Instance Attribute Details
#after ⇒ Object
Returns the value of attribute after
8 9 10 |
# File 'lib/graphql/stitching/plan.rb', line 8 def after @after end |
#if_type ⇒ Object
Returns the value of attribute if_type
8 9 10 |
# File 'lib/graphql/stitching/plan.rb', line 8 def if_type @if_type end |
#location ⇒ Object
Returns the value of attribute location
8 9 10 |
# File 'lib/graphql/stitching/plan.rb', line 8 def location @location end |
#operation_type ⇒ Object
Returns the value of attribute operation_type
8 9 10 |
# File 'lib/graphql/stitching/plan.rb', line 8 def operation_type @operation_type end |
#path ⇒ Object
Returns the value of attribute path
8 9 10 |
# File 'lib/graphql/stitching/plan.rb', line 8 def path @path end |
#resolver ⇒ Object
Returns the value of attribute resolver
8 9 10 |
# File 'lib/graphql/stitching/plan.rb', line 8 def resolver @resolver end |
#selections ⇒ Object
Returns the value of attribute selections
8 9 10 |
# File 'lib/graphql/stitching/plan.rb', line 8 def selections @selections end |
#step ⇒ Object
Returns the value of attribute step
8 9 10 |
# File 'lib/graphql/stitching/plan.rb', line 8 def step @step end |
#variables ⇒ Object
Returns the value of attribute variables
8 9 10 |
# File 'lib/graphql/stitching/plan.rb', line 8 def variables @variables end |
Instance Method Details
#as_json ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/graphql/stitching/plan.rb', line 20 def as_json { step: step, after: after, location: location, operation_type: operation_type, selections: selections, variables: variables, path: path, if_type: if_type, resolver: resolver }.tap(&:compact!) end |