feat: image upload + list root assets (wip)
This commit is contained in:
14
client/graph/editor/editor-media-query-list.gql
Normal file
14
client/graph/editor/editor-media-query-list.gql
Normal file
@@ -0,0 +1,14 @@
|
||||
query ($root: String, $kind: AssetKind!) {
|
||||
assets {
|
||||
list(root:$root, kind: $kind) {
|
||||
id
|
||||
filename
|
||||
ext
|
||||
kind
|
||||
mime
|
||||
fileSize
|
||||
createdAt
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,10 +0,0 @@
|
||||
mutation ($file: Upload!) {
|
||||
assets {
|
||||
upload(data:$file) {
|
||||
responseResult {
|
||||
succeeded
|
||||
message
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user