Skip to content

Commit 268a2bd

Browse files
authored
Merge pull request #610 from code0-tech/adjust-reference-value-type
Adjust ReferenceValue to newer frontend developments
2 parents 5d4d810 + de636ad commit 268a2bd

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

app/graphql/types/reference_value_type.rb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ class ReferenceValueType < Types::BaseObject
99
field :data_type_identifier, Types::DataTypeIdentifierType,
1010
null: false, description: 'The identifier of the data type this reference value belongs to.'
1111

12-
field :primary_level, Int, null: false, description: 'The primary level of the reference value.'
13-
field :secondary_level, Int, null: false, description: 'The secondary level of the reference value.'
14-
field :tertiary_level, Int, null: true, description: 'The tertiary level of the reference value, if applicable.'
12+
# field :primary_level, Int, null: false, description: 'The primary level of the reference value.'
13+
# field :secondary_level, Int, null: false, description: 'The secondary level of the reference value.'
14+
# field :tertiary_level, Int, null: true, description: 'The tertiary level of the reference value, if applicable.'
15+
16+
field :depth, Int, null: false, description: 'The depth of the reference value.'
17+
field :node, Int, null: false, description: 'The node of the reference value.'
18+
field :scope, [Int], null: false, description: 'The scope of the reference value.'
1519

1620
field :reference_path, [Types::ReferencePathType], null: false,
1721
description: 'The paths associated with this reference value.'

docs/graphql/object/referencevalue.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ Represents a reference value in the system.
1010
|------|------|-------------|
1111
| `createdAt` | [`Time!`](../scalar/time.md) | Time when this ReferenceValue was created |
1212
| `dataTypeIdentifier` | [`DataTypeIdentifier!`](../object/datatypeidentifier.md) | The identifier of the data type this reference value belongs to. |
13+
| `depth` | [`Int!`](../scalar/int.md) | The depth of the reference value. |
1314
| `id` | [`ReferenceValueID!`](../scalar/referencevalueid.md) | Global ID of this ReferenceValue |
14-
| `primaryLevel` | [`Int!`](../scalar/int.md) | The primary level of the reference value. |
15+
| `node` | [`Int!`](../scalar/int.md) | The node of the reference value. |
1516
| `referencePath` | [`[ReferencePath!]!`](../object/referencepath.md) | The paths associated with this reference value. |
16-
| `secondaryLevel` | [`Int!`](../scalar/int.md) | The secondary level of the reference value. |
17-
| `tertiaryLevel` | [`Int`](../scalar/int.md) | The tertiary level of the reference value, if applicable. |
17+
| `scope` | [`[Int!]!`](../scalar/int.md) | The scope of the reference value. |
1818
| `updatedAt` | [`Time!`](../scalar/time.md) | Time when this ReferenceValue was last updated |
1919

0 commit comments

Comments
 (0)