Skip to content

Collection methods that expect document keys should not accept IDs #607

@neumann-d

Description

@neumann-d

When checking if a document exists in a collection, I use the function documentCollection.documentExists. For example:

const cities = db.collection("City")
const city_exists = await cities.documentExists("Country/1234")
console.log("city_exists = ", city_exists)

But instead of looking only in the specific "City" collection, it finds documents from other collections (like "Country") too.

ArangoJS version: 6.10.0

Metadata

Metadata

Assignees

Labels

Feature RequestRequest for new functionality to be added to the driver.fixedIssue has been resolved but remains open due to a pending release.semver-majorThis issue requires backwards-incompatible changes to address.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions