I'm not sure if the team wants to document this, but I spent a good half day trying to figure out what I was doing wrong. I'm leaving some keywords here in case someone else runs into this issue. (simultaneous, async, await, synchronous, subsequent, multiple)
I was expecting from() to provide a table reference that I could setup & reuse for multiple queries. Digging around in the code, it creates some internal properties that get overwritten or extended by subsequent calls to select(), eq(), et al. The result is that the select "columns", and filters, will pollute the other calls to the API.
I'm not sure if the team wants to document this, but I spent a good half day trying to figure out what I was doing wrong. I'm leaving some keywords here in case someone else runs into this issue. (simultaneous, async, await, synchronous, subsequent, multiple)
I was expecting
from()
to provide a table reference that I could setup & reuse for multiple queries. Digging around in the code, it creates some internal properties that get overwritten or extended by subsequent calls toselect()
,eq()
, et al. The result is that the select "columns", and filters, will pollute the other calls to the API.