Skip to content

Error when snippet blob is binary in GraphQL

When the blob is binary, there are some components in Types::Snippets::BlobViewerType that can be nil. Specifically the fields collapse and too_large.

Nevertheless, in the definition of this type we set them as null: false. Since they're boolean types we can force the response to be always boolean.

Edited by 🤖 GitLab Bot 🤖