Skip to content

Postgrest.Exceptions.PostgrestException: {"code":"42883","details":null,"hint":"No operator matches the given name and argument types. You might need to add explicit type casts.","message":"operator does not exist: text @> unknown"} Dotnet Supabase #140

@joseadrianoemmanuel1999

Description

Bug report

"code":"42883"

Describe the bug

I am trying to use this command in my project :

await _SupabaseClient
                      .From<Products>()
                      .Select("id,name,price,desc,brand_id:Brands(id,name),subcategory_id:Subcategories(id,name,category_id:Categories(id,name,gender)),Imgs(image),shop_id:users(id,fullname)")
                      .Filter(x=>x.brand_id.name.ToString(),Operator.Contains,new List<Object> {"Nike","Puma"}).Get();

When i try use have this is error:

Postgrest.Exceptions.PostgrestException: {"code":"42883","details":null,"hint":"No operator matches the given name and argument types. You might need to add explicit type casts.","message":"operator does not exist: text @> unknown"}

System information

  • OS: [ Windows]
  • Version of supabase-js: [e.g. 6.0.2]
  • Version of Dotnet : [7]

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