diff --git a/server/graphql/modules/image.ts b/server/graphql/modules/image.ts index 402e9a925..634195aea 100644 --- a/server/graphql/modules/image.ts +++ b/server/graphql/modules/image.ts @@ -16,7 +16,7 @@ const ImageModel = io.type( "Image" ); -export const isTypeOfImage = ImageModel.is; +export const isValidResourceNote = ImageModel.is; export type ImageModelType = io.TypeOf; @@ -43,7 +43,7 @@ export const resolveImage = (id: string) => export const GraphQLImageType = t.objectType({ name: "Image", interfaces: [Relay.GraphQLNodeInterface], - isTypeOf: isTypeOfImage, + isTypeOf: isValidResourceNote, fields: () => [ t.field({ name: "id",