Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

value type for .contains() is not specific enoughΒ #435

@laeo

Description

@laeo

I have a uuid[] field, and i have to filter data using contains method.

VSCode shows the .contains() accept a string | Record<string, unknown> | unknown[] as second param, but it will errors when i pass a string value,

{
  code: "22P02",
  details: 'Array value must start with "{" or dimension information.',
  hint: null,
  message: 'malformed array literal: "06591b00-2d5f-4af1-8203-2324323c5ff2"'
}

If i pass an string[], everything looks good.

Maybe the generated type schema wrong? Or the JS lib not correctly handle them.

  • Runtime: Edge Functions
  • supabase-js: 2.22.0
  • Supabase CLI: 1.64.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions