Class: GraphQL::Stitching::Boundary
- Inherits:
-
Struct
- Object
- Struct
- GraphQL::Stitching::Boundary
- Defined in:
- lib/graphql/stitching/boundary.rb
Overview
Defines a boundary query that provides direct access to an entity type.
Instance Attribute Summary collapse
-
#arg ⇒ Object
Returns the value of attribute arg.
-
#federation ⇒ Object
Returns the value of attribute federation.
-
#field ⇒ Object
Returns the value of attribute field.
-
#key ⇒ Object
Returns the value of attribute key.
-
#list ⇒ Object
Returns the value of attribute list.
-
#location ⇒ Object
Returns the value of attribute location.
-
#type_name ⇒ Object
Returns the value of attribute type_name.
Instance Method Summary collapse
Instance Attribute Details
#arg ⇒ Object
Returns the value of attribute arg
6 7 8 |
# File 'lib/graphql/stitching/boundary.rb', line 6 def arg @arg end |
#federation ⇒ Object
Returns the value of attribute federation
6 7 8 |
# File 'lib/graphql/stitching/boundary.rb', line 6 def federation @federation end |
#field ⇒ Object
Returns the value of attribute field
6 7 8 |
# File 'lib/graphql/stitching/boundary.rb', line 6 def field @field end |
#key ⇒ Object
Returns the value of attribute key
6 7 8 |
# File 'lib/graphql/stitching/boundary.rb', line 6 def key @key end |
#list ⇒ Object
Returns the value of attribute list
6 7 8 |
# File 'lib/graphql/stitching/boundary.rb', line 6 def list @list end |
#location ⇒ Object
Returns the value of attribute location
6 7 8 |
# File 'lib/graphql/stitching/boundary.rb', line 6 def location @location end |
#type_name ⇒ Object
Returns the value of attribute type_name
6 7 8 |
# File 'lib/graphql/stitching/boundary.rb', line 6 def type_name @type_name end |
Instance Method Details
#as_json ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/graphql/stitching/boundary.rb', line 16 def as_json { location: location, type_name: type_name, key: key, field: field, arg: arg, list: list, federation: federation, }.tap(&:compact!) end |