Retrieving a single record

In addition to searching, it is also possible to retrieve a specific record. To do so, you will need the timdexRecordId for the item. You can find this by returning that field in a query, like so:

{
  search(searchterm: "pragmatic programmer") {
    records {
      title
      timdexRecordId
    }
  }
}

Run this query in the GraphQL playground.

Once you have the timdexRecordId of the record in question, you can retrieve information about that record only:

{
  recordId(id: "alma:9935059777706761") {
    title
    edition
    citation
    holdings {
      location
    }
    identifiers {
      kind
      value
    }
  }
}

Run this query in the GraphQL playground.

These are just a few of the fields that you can query on a record. Check out the reference docs for the Record type for a full list. Note that all of these fields can also be requested in the records field of the Search type.

See also