NewId
NewId()
Description
This NewId
function produces a unique number. This number is
guaranteed to be unique across the entire cluster and once generated is
never generated a second time. This identifier is suitable for
constructing the id part of a reference.
Examples
The query below returns a unique number.
client.query(q.NewId())
.then((ret) => console.log(ret))
181388643266462208
Was this article helpful?
We're sorry to hear that.
Tell us how we can improve!
documentation@fauna.com
Thank you for your feedback!