Fork me on GitHub
#datascript
<
2016-11-01
>
isaac12:11:37

Can I store map value (not an entity) data in datascript.

isaac14:11:58

How can I do this? @tonsky

Niki14:11:38

Just store them :) make sure attribute is not indexed, not unique, and not multivalued

isaac14:11:28

it's entity actually, is it?

isaac14:11:38

I fetch some data from api, the data has some key that I use it as my schema.

Niki14:11:45

If you don't mark attribute as ref type, datascript won't try to interpret it as an entity

Niki14:11:58

Instead, it'll be treated as an opaque value

isaac15:11:38

Got it, thank you, tonsky