mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-21 12:06:35 +08:00
feat: add query quota of workspace (#5603)
This commit is contained in:
@@ -880,3 +880,20 @@ mutation acceptInviteByInviteId($workspaceId: String!, $inviteId: String!, $send
|
||||
)
|
||||
}`,
|
||||
};
|
||||
|
||||
export const workspaceQuotaQuery = {
|
||||
id: 'workspaceQuotaQuery' as const,
|
||||
operationName: 'workspaceQuota',
|
||||
definitionName: 'workspace',
|
||||
containsFile: false,
|
||||
query: `
|
||||
query workspaceQuota($id: String!) {
|
||||
workspace(id: $id) {
|
||||
quota {
|
||||
storageQuota
|
||||
usedSize
|
||||
blobLimit
|
||||
}
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
query workspaceQuota($id: String!) {
|
||||
workspace(id: $id) {
|
||||
quota {
|
||||
storageQuota
|
||||
usedSize
|
||||
blobLimit
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user