Dr. Sauce
Type of query result is {}[]
It looks like the reassignment of
query
to itself was causing the issue. If I do something like this, the end result has the correct typing:
The above example is slightly contrived. The reason I am using multiple statements to build the query rather than all in one block is because I have several if
conditions for which certain parts of the query should or should not be included.14 replies