AlmondTill/G3N API

On this page

registryItems

query · in the family Reading your records

What it does

The items on one gift registry.

ONE registry's item rows, OLDEST-FIRST + born-paginated. registryId is the REQUIRED anchor (tenant-scoped). Doomed (removed) rows stay listed — history. Requires authentication.

What happens

Reads only.

Who may call it

Capability area: Reading your records — Looking up and listing the records of your organization.

Arguments

NameTypeRequiredNotes
registryIdID ID!yesNo further notes.
limitIntnoHow many records to answer at most; a page may hold fewer.
nextTokenStringnoThe cursor from the previous page, passed back exactly as received.

Returns

RegistryItemPage RegistryItemPage! — One page of a registry's item rows.

This is a page: items holds the records and nextToken the cursor for the next page — pass it back verbatim until it is null. See paging.

Example request

query ExampleRegistryItems($registryId: ID!, $limit: Int) {
  registryItems(registryId: $registryId, limit: $limit) {
    items {
      id
      type
      caption
      status
      parentId
      rootId
      createdAt
      updatedAt
      revisionNum
      revision
      variantId
      desiredQty
      priority
      note
    }
    nextToken
  }
}

Variables:

{
  "registryId": "01900000-0000-7000-8000-5a9f6ff30000",
  "limit": 1
}

Example response

{
  "data": {
    "registryItems": {
      "items": [
        {
          "id": "01900000-0000-7000-8000-37386ae00000",
          "type": "<type>",
          "caption": "Blue jeans",
          "status": "<status>",
          "parentId": "01900000-0000-7000-8000-065235280000",
          "rootId": "01900000-0000-7000-8000-a093dd800000",
          "createdAt": "2027-01-31T00:00:00.000Z",
          "updatedAt": "2027-01-31T00:00:00.000Z",
          "revisionNum": 1,
          "revision": "01900000-0000-7000-8000-b7960e180000",
          "variantId": "01900000-0000-7000-8000-8415e73b0000",
          "desiredQty": 1,
          "priority": "<priority>",
          "note": "Restock before the weekend."
        }
      ],
      "nextToken": "<the cursor from the previous page>"
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": null,
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer