Created
August 17, 2017 15:08
-
-
Save lassombra/6b04c53eaaf142fb9048ac54a68374ef to your computer and use it in GitHub Desktop.
The schema related to getting a file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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