Skip to content
Visit booth 3171 at Google Cloud Next to see how to unlock real-time decisions at scaleMore info

Records

Using Records

In Aerospike, a record represents the data stored in the database. A record is composed of metadata and bins. Bins hold the record data. Each bin has a name and a value. Metadata is additional information about the record. Records are found in the database using keys.

Using Records as Javascript Objects

The Aerospike Node.js Client uses JavaScript objects to represent records and maps in Aerospike. JavaScript objects require property names to be strings. Aerospike map keys can be of type List, String, Bytes, Integer, or Double. Since JavaScript objects are limited to string keys, reading a record containing a non-string key causes the key to be converted to a string when converted to a Node.js object.

We recommend developers only use string keys when using the Node.js Client to avoid any conversion errors. If Aerospike Clients from other languages are in use, ensure these clients also use strictly string keys.

Feedback

Was this page helpful?

What type of feedback are you giving?

What would you like us to know?

+Capture screenshot

Can we reach out to you?