Skip to content

Commit 625a103

Browse files
authored
Merge pull request #709 from code0-tech/add-graphql-alias-and-display-message
Add graphql aliases and display messages
2 parents b3e4802 + d32893f commit 625a103

File tree

9 files changed

+21
-0
lines changed

9 files changed

+21
-0
lines changed

app/graphql/types/data_type_type.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ class DataTypeType < Types::BaseObject
66

77
authorize :read_datatype
88

9+
field :aliases, Types::TranslationType.connection_type, null: true, description: 'Name of the function'
10+
field :display_messages, Types::TranslationType.connection_type, null: true,
11+
description: 'Display message of the function'
912
field :generic_keys, [String], null: true, description: 'Generic keys of the datatype'
1013
field :identifier, String, null: false, description: 'The identifier scoped to the namespace'
1114
field :name, Types::TranslationType.connection_type, method: :names, null: false,

app/graphql/types/flow_type_type.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ class FlowTypeType < Types::BaseObject
66

77
authorize :read_flow_type
88

9+
field :aliases, Types::TranslationType.connection_type, null: true, description: 'Name of the function'
910
field :descriptions, Types::TranslationType.connection_type, null: true,
1011
description: 'Descriptions of the flow type'
12+
field :display_messages, Types::TranslationType.connection_type, null: true,
13+
description: 'Display message of the function'
1114
field :editable, Boolean, null: false, description: 'Editable status of the flow type'
1215
field :flow_type_settings, [Types::FlowTypeSettingType], null: false,
1316
description: 'Flow type settings of the flow type'

app/graphql/types/function_definition_type.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ class FunctionDefinitionType < Types::BaseObject
1414
null: true,
1515
description: 'Parameters of the function'
1616

17+
field :aliases, Types::TranslationType.connection_type, null: true, description: 'Name of the function'
1718
field :descriptions, Types::TranslationType.connection_type, null: true, description: 'Description of the function'
19+
field :display_messages, Types::TranslationType.connection_type, null: true,
20+
description: 'Display message of the function'
1821
field :names, Types::TranslationType.connection_type, null: true, description: 'Name of the function'
1922

2023
field :deprecation_messages, Types::TranslationType.connection_type,

docs/graphql/object/datatype.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ Represents a DataType
88

99
| Name | Type | Description |
1010
|------|------|-------------|
11+
| `aliases` | [`TranslationConnection`](../object/translationconnection.md) | Name of the function |
1112
| `createdAt` | [`Time!`](../scalar/time.md) | Time when this DataType was created |
13+
| `displayMessages` | [`TranslationConnection`](../object/translationconnection.md) | Display message of the function |
1214
| `genericKeys` | [`[String!]`](../scalar/string.md) | Generic keys of the datatype |
1315
| `id` | [`DataTypeID!`](../scalar/datatypeid.md) | Global ID of this DataType |
1416
| `identifier` | [`String!`](../scalar/string.md) | The identifier scoped to the namespace |

docs/graphql/object/flowtype.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ Represents a flow type
88

99
| Name | Type | Description |
1010
|------|------|-------------|
11+
| `aliases` | [`TranslationConnection`](../object/translationconnection.md) | Name of the function |
1112
| `createdAt` | [`Time!`](../scalar/time.md) | Time when this FlowType was created |
1213
| `descriptions` | [`TranslationConnection`](../object/translationconnection.md) | Descriptions of the flow type |
14+
| `displayMessages` | [`TranslationConnection`](../object/translationconnection.md) | Display message of the function |
1315
| `editable` | [`Boolean!`](../scalar/boolean.md) | Editable status of the flow type |
1416
| `flowTypeSettings` | [`[FlowTypeSetting!]!`](../object/flowtypesetting.md) | Flow type settings of the flow type |
1517
| `id` | [`TypesFlowTypeID!`](../scalar/typesflowtypeid.md) | Global ID of this FlowType |

docs/graphql/object/functiondefinition.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ Represents a function definition
88

99
| Name | Type | Description |
1010
|------|------|-------------|
11+
| `aliases` | [`TranslationConnection`](../object/translationconnection.md) | Name of the function |
1112
| `createdAt` | [`Time!`](../scalar/time.md) | Time when this FunctionDefinition was created |
1213
| `deprecationMessages` | [`TranslationConnection`](../object/translationconnection.md) | Deprecation message of the function |
1314
| `descriptions` | [`TranslationConnection`](../object/translationconnection.md) | Description of the function |
15+
| `displayMessages` | [`TranslationConnection`](../object/translationconnection.md) | Display message of the function |
1416
| `documentations` | [`TranslationConnection`](../object/translationconnection.md) | Documentation of the function |
1517
| `genericKeys` | [`[String!]`](../scalar/string.md) | Generic keys of the function |
1618
| `id` | [`FunctionDefinitionID!`](../scalar/functiondefinitionid.md) | Global ID of this FunctionDefinition |

spec/graphql/types/data_type_type_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
id
1111
rules
1212
name
13+
display_messages
14+
aliases
1315
runtime
1416
genericKeys
1517
createdAt

spec/graphql/types/flow_type_type_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
return_type
1212
flow_type_settings
1313
names
14+
display_messages
15+
aliases
1416
descriptions
1517
id
1618
created_at

spec/graphql/types/function_definition_type_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
returnType
1111
parameterDefinitions
1212
names
13+
displayMessages
14+
aliases
1315
descriptions
1416
documentations
1517
deprecationMessages

0 commit comments

Comments
 (0)