query
query copied to clipboard
JSON Parse error: Unexpected identifier "object"
I am just foolowing the quickstart tutorial here https://github.com/upstash/query?tab=readme-ov-file#quickstart
and getting below error when querying the document but it created the document correct as you can see in below screenshot
const upstashEmployees = await usersByOrganization.match({
organization: 'Upstash',
})
28 | var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29 | var __async = (__this, __arguments, generator) => {
30 | return new Promise((resolve, reject) => {
31 | var fulfilled = (value) => {
32 | try {
33 | step(generator.next(value));
^
SyntaxError: JSON Parse error: Unexpected identifier "object"
at map (1:11)
at fulfilled (//node_modules/.pnpm/@[email protected]/node_modules/@upstash/query/dist/index.js:33:24)
Bun v1.2.2 (macOS arm64)