-
Couldn't load subscription status.
- Fork 109
Closed
Labels
Feature RequestRequest for new functionality to be added to the driver.Request for new functionality to be added to the driver.fixedIssue has been resolved but remains open due to a pending release.Issue has been resolved but remains open due to a pending release.semver-minorThis issue does not require any backwards-incompatible changes to address.This issue does not require any backwards-incompatible changes to address.
Milestone
Description
I think it would be useful to officially expose collection name and id generator on collection object:
const collection = db.collection("collection");
console.log(collection.name); // collectionThis is right now undocumented feature and thus not realiable for use in production. It is useful for generating ID from _key:
const id = collection.name + '/' + _keyMaybe it would be worth to even include specialized method for this:
const id = collection.getID("documentID")
console.log(id); // collection/documentIDMetadata
Metadata
Assignees
Labels
Feature RequestRequest for new functionality to be added to the driver.Request for new functionality to be added to the driver.fixedIssue has been resolved but remains open due to a pending release.Issue has been resolved but remains open due to a pending release.semver-minorThis issue does not require any backwards-incompatible changes to address.This issue does not require any backwards-incompatible changes to address.