Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arrays not getting encoded correctly for in() #8

Closed
awalias opened this issue Feb 19, 2020 · 1 comment
Closed

Arrays not getting encoded correctly for in() #8

awalias opened this issue Feb 19, 2020 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@awalias
Copy link
Member

awalias commented Feb 19, 2020

    const response = await supabase
      .from('users')
      .filter('id', 'lt', 3)
      .filter('username', 'in', ["awalias","supabot"])
      .select('*')

and

    const response = await supabase
      .from('users')
      .in('id', ['2', '3'])
      .select('*')

both return similar

      text: '{"details":"unexpected \\"2\\" expecting \\"(\\"","message":"\\"failed to parse filter (in.2,3)\\" (line 1, column 4)"}',
      method: 'GET',
      path: '/rest/v1/users?apikey=examplekey&id=in.2,3&select=%2A'
@awalias awalias changed the title TypeError when passing lists through supabase-js Arrays not getting encoded correctly for in() Feb 20, 2020
@awalias
Copy link
Member Author

awalias commented Feb 20, 2020

linked to supabase/supabase#22

@kiwicopple kiwicopple added the bug Something isn't working label Feb 20, 2020
@kiwicopple kiwicopple self-assigned this Feb 20, 2020
@kiwicopple kiwicopple added this to the 0.8.0 milestone Feb 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants