A reference to a Document with an ID. The Document may or may not exist. References to Keys, Tokens, and Documents in user-defined Collections are modeled with a DocumentReference.

The example below retrieves a document reference from a hypothetical "Users" collection.

 const response = await client.query(fql`
Users.byId("101")
`);
const userDocumentReference = response.data;

const id = userDocumentReference.id;
id === "101"; // returns true

Hierarchy (view full)

Constructors

Properties

Constructors

Properties

coll: Module
id: string