Skip to content

Commit 751d826

Browse files
committed
Fix reference value
1 parent ce3bf3e commit 751d826

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

app/graphql/types/input/reference_value_input_type.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class ReferenceValueInputType < Types::BaseInputObject
88
argument :reference_path, [Types::Input::ReferencePathInputType],
99
required: true, description: 'The paths associated with this reference value'
1010

11-
argument :node_function, GlobalIdType[::NodeFunction], required: true, description: 'The referenced value'
11+
argument :node_function_id, GlobalIdType[::NodeFunction], required: true, description: 'The referenced value'
1212

1313
argument :data_type_identifier, Types::Input::DataTypeIdentifierInputType,
1414
required: true, description: 'The identifier of the data type this reference value belongs to'

app/graphql/types/reference_value_type.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class ReferenceValueType < Types::BaseObject
66

77
authorize :read_flow
88

9-
field :node_function, Types::NodeFunctionType, null: false, description: 'The referenced value.'
9+
field :node_function_id, GlobalIdType[::NodeFunction], null: false, description: 'The referenced value.'
1010

1111
field :data_type_identifier, Types::DataTypeIdentifierType,
1212
null: false, description: 'The identifier of the data type this reference value belongs to.'

app/services/namespaces/projects/flows/create_service.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def create_node_function(node_function, t)
110110
end
111111

112112
reference_value = SagittariusSchema.object_from_id(
113-
parameter.value.reference_value.node_id
113+
parameter.value.reference_value.node_function_id
114114
)
115115

116116
if reference_value.nil?

docs/graphql/input_object/referencevalueinput.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ Input type for reference value
1111
| `dataTypeIdentifier` | [`DataTypeIdentifierInput!`](../input_object/datatypeidentifierinput.md) | The identifier of the data type this reference value belongs to |
1212
| `depth` | [`Int!`](../scalar/int.md) | The depth of the reference value |
1313
| `node` | [`Int!`](../scalar/int.md) | The node of the reference |
14-
| `nodeFunction` | [`NodeFunctionID!`](../scalar/nodefunctionid.md) | The referenced value |
14+
| `nodeFunctionId` | [`NodeFunctionID!`](../scalar/nodefunctionid.md) | The referenced value |
1515
| `referencePath` | [`[ReferencePathInput!]!`](../input_object/referencepathinput.md) | The paths associated with this reference value |
1616
| `scope` | [`[Int!]!`](../scalar/int.md) | The scope of the reference value |

docs/graphql/object/referencevalue.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Represents a reference value in the system.
1313
| `depth` | [`Int!`](../scalar/int.md) | The depth of the reference value. |
1414
| `id` | [`ReferenceValueID!`](../scalar/referencevalueid.md) | Global ID of this ReferenceValue |
1515
| `node` | [`Int!`](../scalar/int.md) | The node of the reference value. |
16-
| `nodeFunction` | [`NodeFunction!`](../object/nodefunction.md) | The referenced value. |
16+
| `nodeFunctionId` | [`NodeFunctionID!`](../scalar/nodefunctionid.md) | The referenced value. |
1717
| `referencePath` | [`[ReferencePath!]!`](../object/referencepath.md) | The paths associated with this reference value. |
1818
| `scope` | [`[Int!]!`](../scalar/int.md) | The scope of the reference value. |
1919
| `updatedAt` | [`Time!`](../scalar/time.md) | Time when this ReferenceValue was last updated |

0 commit comments

Comments
 (0)