8000 Bad request when attempting to query collection · Issue #168 · cfworker/cfworker · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Bad request when attempting to query collection #168
Closed
@Inrixia

Description

@Inrixia

Hi, I don't know what I'm doing wrong but when attempting to use this query:

const result = await req.env.cosmos.queryDocuments<Listing>({ collId: "listings", query: `SELECT * FROM c` });

I am getting this result:

{
        "response": {
            "webSocket": null,
            "url": "https://REDACTED.documents.azure.com/dbs/REDACTED/colls/listings/docs",
            "redirected": false,
            "ok": false,
            "headers": {},
            "statusText": "Bad Request",
            "status": 400,
            "bodyUsed": false,
            "body": {
                "locked": false
            }
        },
        "itemsProperty": "Documents"
    }

Note: I replaced sensitive info with REDACTED.

Is this a bug with this sdk or is there something I am doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0