Trashed Items

Query

trashedItems — Returns ConnectionType of TrashedItem

Scopes Required: see_trashed_items

Sortable Fields

Fields from TrashedItem that can be used to sort the connection items

  • name
  • deletedAt
Arguments Type Description

search

String

Needle to use to search through the trashed items

type

RecoverableTrashTypeEnum

Filter by type

deletedAfter

Date

The start of when the items were deleted (inclusive)

deletedBefore

Date

The end of when the items were deleted (inclusive)

Example Query
query GetTrashedItems($search: String) {
    trashedItems(search: $search) {
        edges {
            node {
                id,
                type,
                name,
                deletedAt
            }
        },
        pageInfo {
            hasNextPage,
            endCursor
        }
    }
}

# Example variables
{
    "search": "<SEARCH>"
}