Class: GraphQL::Stitching::Boundary

Inherits:
Struct
  • Object
show all
Defined in:
lib/graphql/stitching/boundary.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argObject

Returns the value of attribute arg

Returns:

  • (Object)

    the current value of arg



5
6
7
# File 'lib/graphql/stitching/boundary.rb', line 5

def arg
  @arg
end

#federationObject

Returns the value of attribute federation

Returns:

  • (Object)

    the current value of federation



5
6
7
# File 'lib/graphql/stitching/boundary.rb', line 5

def federation
  @federation
end

#fieldObject

Returns the value of attribute field

Returns:

  • (Object)

    the current value of field



5
6
7
# File 'lib/graphql/stitching/boundary.rb', line 5

def field
  @field
end

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



5
6
7
# File 'lib/graphql/stitching/boundary.rb', line 5

def key
  @key
end

#listObject

Returns the value of attribute list

Returns:

  • (Object)

    the current value of list



5
6
7
# File 'lib/graphql/stitching/boundary.rb', line 5

def list
  @list
end

#locationObject

Returns the value of attribute location

Returns:

  • (Object)

    the current value of location



5
6
7
# File 'lib/graphql/stitching/boundary.rb', line 5

def location
  @location
end

#type_nameObject

Returns the value of attribute type_name

Returns:

  • (Object)

    the current value of type_name



5
6
7
# File 'lib/graphql/stitching/boundary.rb', line 5

def type_name
  @type_name
end

Instance Method Details

#as_jsonObject



15
16
17
18
19
20
21
22
23
24
25
# File 'lib/graphql/stitching/boundary.rb', line 15

def as_json
  {
    location: location,
    type_name: type_name,
    key: key,
    field: field,
    arg: arg,
    list: list,
    federation: federation,
  }.tap(&:compact!)
end