AlmondTill/G3N API

On this page

registriesByConsumer

query · in the family Reading your records

What it does

All of one customer’s registries.

ONE consumer's registries, NEWEST-FIRST + born-paginated. consumerId is the REQUIRED anchor (tenant-scoped). Doomed drops per page; closed/expired history stays. 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
consumerIdID 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

GiftRegistryPage GiftRegistryPage! — One page of the giftRegistries listing — the records + the opaque resume cursor.

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 ExampleRegistriesByConsumer($consumerId: ID!, $limit: Int) {
  registriesByConsumer(consumerId: $consumerId, limit: $limit) {
    items {
      id
      sysId
      type
      caption
      status
      parentId
      rootId
      createdAt
      updatedAt
      revisionNum
      revision
      ownerConsumerId
      registryType
      privacy
      eventDate
    }
    nextToken
  }
}

Variables:

{
  "consumerId": "01900000-0000-7000-8000-6e8c92ec0000",
  "limit": 1
}

Example response

{
  "data": {
    "registriesByConsumer": {
      "items": [
        {
          "id": "01900000-0000-7000-8000-37386ae00000",
          "sysId": "GR-EXMP-0000-000F",
          "type": "GiftRegistry",
          "caption": "Blue jeans",
          "status": "active",
          "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",
          "ownerConsumerId": "01900000-0000-7000-8000-44c7fc050000",
          "registryType": "<registry type>",
          "privacy": "<privacy>",
          "eventDate": "2027-01-31"
        }
      ],
      "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