why deepstreamHub? compare us getting started feature roadmap faq
use cases pricing
blog contact

An anonymous record is a record without a predefined name. It's useful as a wrapper around an actual record that can be swapped out for another while keeping all bindings intact.

An anonymousRecord extends Record and contains all of its API calls.

To learn more about how they are used, have a look at the AnonymousRecord Tutorial.

Creating an Anonymous Record

AnonymousRecords are created and retrieved using client.record.getAnonymousRecord()

const anonymousRecord = client.record.getAnonymousRecord()

Anonymous Record Methods

In addition to the methods of a record, an anonymous record also has


argument type optional description
recordName String false The name of the actual record that should be used. This can be called multiple times.

Sets the underlying record the anonymousRecord wraps around. It takes care of cleaning up the previous record on your behalf.

const anonymousRecord = client.record.getAnonymousRecord()



The new name of the underlying record which the anonymous record now represents.