tribute2ro
tribute2ro

Reputation: 390

What data types does IndexedDb support?

I have searched, but can't seem to find anything about the data types that IndexedDB supports. I know that it supports basic Javascript objects, but what if I want to store an instance of an object or a blob of data? Does IndexedDB support anything more than simple objects or does it have data types to assist in doing creative things?

Thank you

Upvotes: 13

Views: 5309

Answers (1)

Kyaw Tun
Kyaw Tun

Reputation: 13131

IndexedDB use Structured Cloning Algorithm to serialize the data. Basically it can save all javascript data types in plain object, in nested or in circular reference.

Upvotes: 15

Related Questions