1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- fragment StorageNodeInfo on StorageBucket {
- id
- operatorMetadata {
- nodeEndpoint
- }
- }
- query getStorageNodesInfoByBagId($bagId: ID) {
- storageBuckets(
- where: {
- operatorStatus_json: { isTypeOf_eq: "StorageBucketOperatorStatusActive" }
- bags_some: { id_eq: $bagId }
- operatorMetadata: { nodeEndpoint_contains: "http" }
- }
- ) {
- ...StorageNodeInfo
- }
- }
- fragment DataObjectInfo on StorageDataObject {
- id
- size
- deletionPrize
- type {
- __typename
- ... on DataObjectTypeVideoMedia {
- video {
- id
- }
- }
- ... on DataObjectTypeVideoThumbnail {
- video {
- id
- }
- }
- ... on DataObjectTypeChannelAvatar {
- channel {
- id
- }
- }
- ... on DataObjectTypeChannelCoverPhoto {
- channel {
- id
- }
- }
- }
- }
- query getDataObjectsByBagId($bagId: ID) {
- storageDataObjects(where: { storageBag: { id_eq: $bagId } }) {
- ...DataObjectInfo
- }
- }
- query getDataObjectsByChannelId($channelId: ID) {
- storageDataObjects(where: { type_json: { channelId_eq: $channelId } }) {
- ...DataObjectInfo
- }
- }
- query getDataObjectsByVideoId($videoId: ID) {
- storageDataObjects(where: { type_json: { videoId_eq: $videoId } }) {
- ...DataObjectInfo
- }
- }
|