Skip to content

browseOnedrive

BrowseOnedriveFolderItems returns the contents (folders and files) of a OneDrive folder inside a single snapshot. Encapsulates the snapshot-expiry gate, the quarantine lookup for the synthetic root, and the response shaping previously performed in the GraphQL resolver browseOnedrive.

Arguments

Argument Type Description
first Int Returns the first n elements from the list.
after String Returns the elements in the list that occur after the specified cursor.
last Int Returns the last n elements from the list.
before String Returns the elements in the list that occur before the specified cursor.
snappableFid (required) UUID! The FID for the OneDrive workload.
snapshotFid (required) UUID! The ID of the snapshot.
orgId (required) UUID! Org UUID.
folderId String The folder to browse. Empty means the OneDrive root, which is synthesized rather than fetched from the search service.
onedriveSearchFilter OnedriveSearchFilter Optional OneDrive search filter.

Returns

O365OnedriveObjectConnection!

Sample

query BrowseOnedrive($snappableFid: UUID!, $snapshotFid: UUID!, $orgId: UUID!) {
  browseOnedrive(
    snappableFid: $snappableFid
    snapshotFid: $snapshotFid
    orgId: $orgId
    first: 10
  ) {
    nodes {
      channelFolderName
      channelMembershipType
      channelName
      createTime
      id
      modifiedTime
      name
      parentFolderId
      path
      size
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
{
  "snappableFid": "00000000-0000-0000-0000-000000000000",
  "snapshotFid": "00000000-0000-0000-0000-000000000000",
  "orgId": "00000000-0000-0000-0000-000000000000"
}
{
  "data": {
    "browseOnedrive": {
      "nodes": [
        [
          {
            "channelFolderName": "example-string",
            "channelMembershipType": "ALL",
            "channelName": "example-string",
            "createTime": "2024-01-01T00:00:00.000Z",
            "id": "example-string",
            "modifiedTime": "2024-01-01T00:00:00.000Z"
          }
        ]
      ],
      "pageInfo": {
        "endCursor": "example-string",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "example-string"
      }
    }
  }
}