Skip to content

v0.5.0 allocateIds

Compare
Choose a tag to compare
@lostpebble lostpebble released this 17 Oct 17:15
· 104 commits to master since this release

Added the ability to use the following syntax:

const keys = await TestModel.allocateIds(1);

This will return an array of keys that have unique (integer) ids assigned to them - allocated from the Google Cloud Datastore to ensure uniqueness.

You can also specify an array for ancestors as a second argument.