firelordjs
Version:
🔥 High Precision Typescript Wrapper for Firestore Web, Providing Unparalleled Type Safe and Dev Experience
8 lines (7 loc) • 356 B
JavaScript
/**
* Returns a special sentinel `FieldPath` to refer to the ID of a document.
* It can be used in queries to sort or filter by the document ID.
* documentId() no longer play any significant role because you can replace it with string `__name__`.
* It is kept for backward compatibility.
*/
export var documentId = function () { return '__name__'; };