Skip to content

Status 400 when attempting to query by array value #47

@luisw90

Description

@luisw90

Bug report

Describe the bug

Status 400 when attempting to query by array value

For example:

  • Making a query for all works.

.from("posts").select(columns: "*").execute().value

  • But making a query by array value gives a unacceptableStatusCode(400)

.from("posts").select(columns: "*").contains(column: "members", value: userid).execute().value

To Reproduce

Crate a table, RLS policy and query by array value

  • Table name: posts
  • Table column name: "members"
  • Column array: [userid1, userid2, userid3]

Expected behavior

Should either return an empty array or results

System information

OS: macOS Ventura 13.3
Version of supabase-ios: 0.2.1

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