If I do QueryBuilder.select(SelectResult.all(), SelectResult.expression(Meta.id))
, the results look like this:
{ "id": "1", "db": { "foo": "bar" } }
How can I return flattened results like this?
{ "id": "1", "foo": "bar" }
I found the same question here, but I’m not sure how to translate the answer to the CBL 2.0 QueryBuilder
. Thanks!