From 5c7ec254bec1af7219c081a3912e2d32e74697d8 Mon Sep 17 00:00:00 2001 From: Artsy Date: Thu, 28 Apr 2022 04:55:15 -0500 Subject: [PATCH] Update metaphysics schema (#6679) --- data/schema.graphql | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/data/schema.graphql b/data/schema.graphql index 8b65811aa44..9a62d5aba77 100644 --- a/data/schema.graphql +++ b/data/schema.graphql @@ -8569,6 +8569,17 @@ type Image { width: Int } +type ImageSearch { + # File stream transfer encoding + encoding: String! + + # File name + filename: String! + + # File MIME type. Provided by the client and can’t be trusted + mimetype: String! +} + type ImageURLs { normalized: String } @@ -11655,6 +11666,12 @@ type Query { ): CreditCard departments: [Department!]! + # Get an image info + doNotUseImageSearch( + # Image file + image: Upload! + ): ImageSearch + # A namespace external partners (provided by Galaxy) external: External! @@ -14294,6 +14311,9 @@ type UpdateViewingRoomSubsectionsPayload { subsections: [ViewingRoomSubsection!]! } +# The `Upload` scalar type represents a file upload. +scalar Upload + type User { analytics: AnalyticsUserStats cached: Int @@ -14786,6 +14806,12 @@ type Viewer { ): CreditCard departments: [Department!]! + # Get an image info + doNotUseImageSearch( + # Image file + image: Upload! + ): ImageSearch + # A namespace external partners (provided by Galaxy) external: External!