Reference · SDK
getRecords(read, uris)
functiontechne-sdk/query
Records by their addresses, each exactly as written. It answers a Map from URI to record, and leaves out any address with nothing you may read.
It calls query.getRecords in batches the platform accepts. For the curated view of a record and its other versions, read commons.getVersions (eventState). getRecordsAnswer answers more for the same call: the addresses moderation withheld, and, if you ask, handles, curation and defaults.
Parameters
| Name | Type | What it is |
|---|---|---|
readrequired | QueryReader | A function that sends a GET for an NSID with its parameters and answers the JSON. Over techne.platform it is one line. |
urisrequired | Iterable<string> | The records' at:// addresses, any number. Repeats are read once. |
Returns Promise<Map<string, QueryRecord>>
| Name | Type | What it is |
|---|---|---|
record | QueryRecord | The same record a query answers: { uri, cid, author, collection, value, time, source, … }. Absent when there is no such record, you may not read it, or moderation withheld it. |
One park, exactly that record
Signed out, read with a client at the platform itself, new AtpBaseClient({ service: 'https://techne.computer' }) (connect). You see public records only.
Calls query.getRecords →