Skip to content

Commit 5d500cb

Browse files
committed
Rename NodeFunctionId -> NodeFunctionIdWrapper
1 parent f982782 commit 5d500cb

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

app/graphql/types/node_function_id_type.rb

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# frozen_string_literal: true
2+
3+
module Types
4+
class NodeFunctionIdWrapperType < Types::BaseObject
5+
description 'Represents a Node Function id wrapper.'
6+
7+
authorize :read_flow
8+
id_field NodeFunction
9+
end
10+
end

app/graphql/types/node_parameter_value_type.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ module Types
44
class NodeParameterValueType < Types::BaseUnion
55
description 'Represents a parameter value for a node.'
66

7-
possible_types Types::LiteralValueType, Types::ReferenceValueType, Types::NodeFunctionIdType,
7+
possible_types Types::LiteralValueType, Types::ReferenceValueType, Types::NodeFunctionIdWrapperType,
88
description: 'The value can be a literal, a reference, or a node function id.'
99

1010
def self.resolve_type(object, _context)
1111
case object
1212
when ReferenceValue
1313
Types::ReferenceValueType
1414
when NodeFunction
15-
Types::NodeFunctionIdType
15+
Types::NodeFunctionIdWrapperType
1616
else
1717
Types::LiteralValueType
1818
end
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
2-
title: NodeFunctionId
2+
title: NodeFunctionIdWrapper
33
---
44

5-
Represents a Node Function id
5+
Represents a Node Function id wrapper.
66

77
## Fields without arguments
88

99
| Name | Type | Description |
1010
|------|------|-------------|
11-
| `id` | [`NodeFunctionID!`](../scalar/nodefunctionid.md) | Global ID of this NodeFunctionId |
11+
| `id` | [`NodeFunctionID!`](../scalar/nodefunctionid.md) | Global ID of this NodeFunctionIdWrapper |
1212

docs/graphql/union/nodeparametervalue.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ Represents a parameter value for a node.
77
## Possible types
88

99
- [`LiteralValue`](../object/literalvalue.md)
10-
- [`NodeFunctionId`](../object/nodefunctionid.md)
10+
- [`NodeFunctionIdWrapper`](../object/nodefunctionidwrapper.md)
1111
- [`ReferenceValue`](../object/referencevalue.md)

0 commit comments

Comments
 (0)