mapWith, any special things to make it work ?

I can't seem to have mapWith() work - I am logging inside the function and it nvever gets called.

I am doing some sql-fu and want to return a collection that is declared in drizzle, and would like to have it mapped to my js object.

I tryed on sql``.mapWith(), sql.join().mapWith() without any success.

Also I was wondering if there was a way to pass the drizzle table object somehow so that the return of the sql gets mapped with the default mapping of this table, not having to declare a mapper again ?

the doc is not super clear on this front.
Was this page helpful?