You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wiki/server/graph/schemas/asset.graphql

64 lines
977 B

# ===============================================
# ASSETS
# ===============================================
extend type Query {
assets(
folderId: Int!
kind: AssetKind!
): [AssetItem]
assetsFolders(
parentFolderId: Int!
): [AssetFolder]
}
extend type Mutation {
createAssetsFolder(
parentFolderId: Int!
slug: String!
name: String
): DefaultResponse
renameAsset(
id: Int!
filename: String!
): DefaultResponse
deleteAsset(
id: Int!
): DefaultResponse
flushTempUploads: DefaultResponse
}
# -----------------------------------------------
# TYPES
# -----------------------------------------------
type AssetItem {
id: Int!
filename: String!
ext: String!
kind: AssetKind!
mime: String!
fileSize: Int!
metadata: String
createdAt: Date!
updatedAt: Date!
folder: AssetFolder
author: User
}
type AssetFolder {
id: Int!
slug: String!
name: String
}
enum AssetKind {
IMAGE
BINARY
ALL
}