---
title: Qid
summary: The identifier of one object in one model version, written as the version's UUID, a dash and the object's Oid ("797e993c-a87f-4aa7-9587-c59d30ec5c4e-1316"). Sets of Qids drive selection, colouring and hiding in the viewers.
part: glossary
see-also: [glossary/vid, glossary/oid, explanation/identifiers]
---

# Qid

A Qid is a string with two parts: the [[term:vid|Vid]] of the model version the object lives in, and the object's [[term:oid|Oid]] within that version, joined by a dash. Because a Vid is a UUID that itself contains dashes, the Oid is whatever follows the last dash. The name is historical ("query id"); it identifies an object, not a query.

In the JavaScript SDK a `Qid` is a class with `vid` and `oid` fields; `QidSet` and `QidMap` are the collections built for large models (a Qid per object, millions of them). In the Java SDK and on the wire a Qid appears either as the string form or as the object `{"vid": "…", "oid": 1316}`. [[term:bql]] returns it as the `qid` feature.

Qids are stable: reindexing a model or committing a [[term:transaction]] keeps the Oids of objects that did not change, and the Vid is never reassigned. See [[page:explanation/identifiers]].
