Commit 3892e4e9 authored by charlie ablett's avatar charlie ablett

Merge branch 'bw-graphql-quote-types' into 'master'

Use quotes for circular field definitions

See merge request gitlab-org/gitlab!82651
parents b2939d8a f7e4b2d3
...@@ -108,7 +108,9 @@ module Types ...@@ -108,7 +108,9 @@ module Types
field :suggestion_commit_message, GraphQL::Types::String, null: true, field :suggestion_commit_message, GraphQL::Types::String, null: true,
description: 'Commit message used to apply merge request suggestions.' description: 'Commit message used to apply merge request suggestions.'
field :group, Types::GroupType, null: true, # No, the quotes are not a typo. Used to get around circular dependencies.
# See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/27536#note_871009675
field :group, 'Types::GroupType', null: true,
description: 'Group of the project.' description: 'Group of the project.'
field :namespace, Types::NamespaceType, null: true, field :namespace, Types::NamespaceType, null: true,
description: 'Namespace of the project.' description: 'Namespace of the project.'
......
...@@ -18,7 +18,7 @@ module Types ...@@ -18,7 +18,7 @@ module Types
null: true, null: true,
authorize: :read_project authorize: :read_project
field :group, Types::GroupType, field :group, 'Types::GroupType',
description: 'Group this to-do item is associated with.', description: 'Group this to-do item is associated with.',
null: true, null: true,
authorize: :read_group authorize: :read_group
......
...@@ -34,9 +34,9 @@ module Types ...@@ -34,9 +34,9 @@ module Types
field :author, Types::UserType, null: false, field :author, Types::UserType, null: false,
description: 'Author of the epic.' description: 'Author of the epic.'
field :group, GroupType, null: false, field :group, 'Types::GroupType', null: false,
description: 'Group to which the epic belongs.' description: 'Group to which the epic belongs.'
field :parent, EpicType, null: true, field :parent, Types::EpicType, null: true,
description: 'Parent epic of the epic.' description: 'Parent epic of the epic.'
field :start_date, Types::TimeType, null: true, field :start_date, Types::TimeType, null: true,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment