mirror of https://github.com/requarks/wiki
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.
46 lines
762 B
46 lines
762 B
# ===============================================
|
|
# ASSETS
|
|
# ===============================================
|
|
|
|
extend type Query {
|
|
assets: AssetQuery
|
|
}
|
|
|
|
extend type Mutation {
|
|
assets: AssetMutation
|
|
}
|
|
|
|
# -----------------------------------------------
|
|
# QUERIES
|
|
# -----------------------------------------------
|
|
|
|
type AssetQuery {
|
|
list(
|
|
root: String
|
|
kind: [AssetKind]
|
|
): [AssetItem]
|
|
}
|
|
|
|
# -----------------------------------------------
|
|
# MUTATIONS
|
|
# -----------------------------------------------
|
|
|
|
type AssetMutation {
|
|
upload(
|
|
data: Upload!
|
|
): DefaultResponse
|
|
}
|
|
|
|
# -----------------------------------------------
|
|
# TYPES
|
|
# -----------------------------------------------
|
|
|
|
type AssetItem {
|
|
id: Int!
|
|
}
|
|
|
|
enum AssetKind {
|
|
IMAGE
|
|
BINARY
|
|
}
|