Fork me on GitHub
#fulcro
<
2022-06-27
>
Quentin Le Guennec21:06:57

Hello, is there a way to use datomic's :bytes type with fulcro rad?

tony.kay00:06:26

Of course. However, I may not have added it to the types map, and not sure how you want to encode that into network layer.

tony.kay00:06:46

but you can always use an arbitrary invented type name on an attr, and then define that meaning in each context

tony.kay00:06:04

(e.g. add a renderer, etc)

tony.kay00:06:23

for example

(defattr a :foo/bar :made-up-type 
  {...
   do/attribute-schema {:db/valueType :db.type/bytes}}

tony.kay00:06:12

RAD doesn’t have anything specific built in to help with bytes, but literally everything is pluggable

Quentin Le Guennec06:06:46

Ok cool. I don't want to network it, it's just to backup clojure data structures I might use later. Thanks for your answer.