@credulous has joined the channel
Hi… just started using hugsql. I wondered: in the query definitions, is there a way to extract parameters from a nested map of the passed-in structure? For example, to flatten {:name "Me", :contact {:phone "123-2345"}}?
Obviously I could adapt the data before calling e.g. create-user! but I thought it would be nice if the database functions accepted the same data as I’m using elsewhere.
@credulous You can use HugSQL's deep-get parameter syntax to achieve this: :contact.phone See: https://www.hugsql.org/#deep-get-param-name
Thank yoU!