Skip to content

snappableEmailSearch

SearchSnappableEmails returns a paginated, GraphQL-shaped list of mailbox folders and emails for the given snappable across all snapshots. Encapsulates the response shaping (folders + emails merged as O365ExchangeObject) that previously lived in the GraphQL resolver snappableEmailSearch.

Arguments

Argument Type Description
first Int Returns the first n elements from the list.
after String An opaque cursor returned from a previous query's endCursor field. Pass this value verbatim to retrieve the next page of results.
last Int Returns the last n elements from the list.
before String An opaque cursor returned from a previous query's startCursor field. Pass this value verbatim to retrieve the previous page of results.
snappableFid (required) UUID! The FID for the workload.
orgId (required) UUID! Org UUID.
searchFilter SearchFilter search filters

Returns

O365ExchangeObjectConnection!

Sample

query SnappableEmailSearch($snappableFid: UUID!, $orgId: UUID!) {
  snappableEmailSearch(
    snappableFid: $snappableFid
    orgId: $orgId
    first: 10
  ) {
    nodes {
      id
      parentFolderId
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
{
  "snappableFid": "00000000-0000-0000-0000-000000000000",
  "orgId": "00000000-0000-0000-0000-000000000000"
}
{
  "data": {
    "snappableEmailSearch": {
      "nodes": [
        [
          {
            "id": "example-string",
            "parentFolderId": "example-string"
          }
        ]
      ],
      "pageInfo": {
        "endCursor": "example-string",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "example-string"
      }
    }
  }
}