Bravo
Bravo4w 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
rubenf4w ago
only if maps are serializable in json, otherwise transform them first as an object
Bravo
BravoOP4w 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
rubenf4w ago
latter is correct
Bravo
BravoOP4w ago
oki
rubenf
rubenf4w ago
for typescript we use JSON.stringify
Bravo
BravoOP4w ago
yeah I had to use Object.fromEntries on top of that that did the trick, thanks mr ruben, you're really helpful :D