Commit 3f01d6ea authored by lauraMon's avatar lauraMon

Updates field and adds resolver

* Adds resolver to user in pipelineType
* Updates field to be markdown_field
parent 346e7d92
...@@ -46,7 +46,8 @@ module Types ...@@ -46,7 +46,8 @@ module Types
extras: [:lookahead], extras: [:lookahead],
resolver: Resolvers::Ci::PipelineStagesResolver resolver: Resolvers::Ci::PipelineStagesResolver
field :user, Types::UserType, null: true, field :user, Types::UserType, null: true,
description: 'Pipeline user' description: 'Pipeline user',
resolve: -> (pipeline, _args, _context) { Gitlab::Graphql::Loaders::BatchModelLoader.new(User, pipeline.user_id).find }
end end
end end
end end
......
...@@ -5,7 +5,7 @@ module Types ...@@ -5,7 +5,7 @@ module Types
class UserStatusType < BaseObject class UserStatusType < BaseObject
graphql_name 'UserStatus' graphql_name 'UserStatus'
field :message_html, GraphQL::STRING_TYPE, null: true, markdown_field :message_html, null: true,
description: 'HTML of the user status message' description: 'HTML of the user status message'
field :message, GraphQL::STRING_TYPE, null: true, field :message, GraphQL::STRING_TYPE, null: true,
description: 'User status message' description: 'User status message'
......
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