Skip to content

could not determine data type of parameter $1 #77

@Catsvilles

Description

@Catsvilles

Hi, I'm getting error when trying to pass dynamic variable into my select query:

const response = await sqlSELECT * FROM posts WHERE data->'topic' @> '[{"slug": "${slug}" }]';

Is there any way around this? I tried passing ${slug} without double quotes around it but then I get invalid json error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions