query · Module: Data Network · Requires data:read
Arguments
| Argument | Type | Description |
|---|---|---|
subjectShipment | String | Filter by subject.shipment. |
subjectType | String | Filter by subject.type. |
producer | String | Filter by producer. |
limit | Int | Page size, 1–100 (default 10). |
startingAfter | ID | Cursor: return objects after this ID. |
endingBefore | ID | Cursor: return objects before this ID. |
Returns
RecordList!
| Field | Type |
|---|---|
data | [Record!]! |
has_more | Boolean |
Errors
Errors are returned inerrors[], with the REST error object in extensions (type, code, param, request_id), using the codes in Conventions §9.
query Records($limit: Int) {
records(limit: $limit) {
data {
id
object
cid
subject {
type
id
shipment
}
previous
producer
role
produced_at
schema
payload {
encryption
key_id
location
size
}
signature {
alg
kid
value
}
anchor {
status
batch
merkle_proof
}
}
has_more
}
}
{
"limit": 10
}
{
"data": {
"records": {
"data": [
{
"id": "obj_1a2B3c",
"object": "record",
"cid": "example",
"subject": {
"type": "example",
"id": "obj_1a2B3c",
"shipment": "shp_1Q2w3E4r5T6y"
},
"previous": "example",
"producer": "example",
"role": "example",
"produced_at": "2026-10-07T09:00:00Z",
"schema": "example",
"payload": {
"encryption": "example",
"key_id": "example",
"location": "loc_lon_a12_03_b",
"size": 2
},
"signature": {
"alg": "example",
"kid": "example",
"value": "example"
},
"anchor": {
"status": "example",
"batch": "example",
"merkle_proof": [
"example"
]
}
}
],
"has_more": true
}
}
}