Skip to content

Instantly share code, notes, and snippets.

@lassombra
Created August 17, 2017 15:08
Show Gist options
  • Save lassombra/6b04c53eaaf142fb9048ac54a68374ef to your computer and use it in GitHub Desktop.
Save lassombra/6b04c53eaaf142fb9048ac54a68374ef to your computer and use it in GitHub Desktop.
The schema related to getting a file
type File {
id: Int!
name: String!
size: Int
type: String!
md5: String!
uploadedBy: String!
uploaded: Date!
filePath: String!
dpi: Int!
height: Int!
width: Int!
colorSpace: String!
bits: Int!
originalImage: File
generatedSizes: [FileImageSize!]
thumbnailPath: String
downloadPath: String
}
type FileImageSize {
id: Int!
imageSize: FileImageSizeDef!
image: File!
}
type FileImageSizeDef {
id: Int!
description: String!
pixels: Int!
height: Boolean!
width: Boolean!
minimumSize: Int!
defaultSize: Boolean!
}
type Query {
file(id: Int!): File
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment