Commit 59bcb7b0 authored by Alex Kalderimis's avatar Alex Kalderimis

Reword method comments

parent b97743da
...@@ -27,8 +27,10 @@ module Types ...@@ -27,8 +27,10 @@ module Types
Gitlab::Graphql::Loaders::BatchModelLoader.new(Project, object.project_id).find Gitlab::Graphql::Loaders::BatchModelLoader.new(Project, object.project_id).find
end end
# NOTE: This method must be kept in sync with `MetadataType.resolve_type`. # NOTE: This method must be kept in sync with the union
# This method must never produce data that the discriminator cannot handle. # type: `Types::Packages::MetadataType`.
#
# `Types::Packages::MetadataType.resolve_type(metadata, ctx)` must never raise.
def metadata def metadata
case object.package_type case object.package_type
when 'composer' when 'composer'
......
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