Bravo
Bravo5d ago

passing down maps in a flow

Is passing down objects in typescript like Map<string,number> supported in flows? Because I can print it in my script but when I pass it downwards in a flow, it's complaining about undefined
6 Replies
rubenf
rubenf5d ago
only if maps are serializable in json, otherwise transform them first as an object
Bravo
BravoOP5d ago
good to know, thank you is there a list of supported/unsupported data structures somewhere in the docs perhaps? or just like anything you can serialize in json is supported and the rest isnt supported?
rubenf
rubenf5d ago
latter is correct
Bravo
BravoOP5d ago
oki
rubenf
rubenf5d ago
for typescript we use JSON.stringify
Bravo
BravoOP5d ago
yeah I had to use Object.fromEntries on top of that that did the trick, thanks mr ruben, you're really helpful :D