Closed rockerBOO closed 9 months ago
The element function can be used to decode a single value from a tuple: https://hexdocs.pm/gleam_stdlib/gleam/dynamic.html#element
Sweet, that works! I was getting in the weeds with json and sqlight and mixing them up. I was getting confused. This works and I like it. Thank you!
Trying to get 1 element from a query but it's asking for a tuple of 1. There is no tuple1 in the dynamic so I tried
dynamic.int
but getting the following error.Example code
What is the expected behavior here?
Thank you!