fauna-js icon indicating copy to clipboard operation
fauna-js copied to clipboard

FQL Objects with nested queries

Open Lepozepo opened this issue 10 months ago • 2 comments

It feels like something like this should work with this driver but it currently does not:

const enhancer = { field1: fql`collection.all().paginate(n)` }
query(fql`Object.assign(someDocument, ${enhancer})`)

I'm getting an empty object for field1

Lepozepo avatar Apr 15 '24 17:04 Lepozepo