byId()
Get a document by its document ID.
Description
Gets a document in the collection by its document ID.
Returns the document if it exists and is accessible. Otherwise, returns
null
.
Examples
{
id: "357101842659803169",
coll: Letter,
ts: Time("2023-02-19T14:41:45.693Z"),
name: "B"
}
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!