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

Invalid get index 'in' #78

Closed
f-montanari opened this issue Sep 9, 2024 · 1 comment
Closed

Invalid get index 'in' #78

f-montanari opened this issue Sep 9, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@f-montanari
Copy link

Bug report

Describe the bug

When trying to use the snippets from the wiki, if you select from database using the "In" query, you get the following error:
Invalid get index 'in' (on base: 'Dictionary')

To Reproduce

Make a blank project with the addon, and run the example snippet:

func select():
  Supabase.database.connect("selected", self, "_on_selected")
  var query = SupabaseQuery.new().from("test-table").select().In("name", ["Test"])
  Supabase.database.query(query)

func _on_selected(result : Array):
    print(result)

Expected behavior

A proper request being made to the supabase servers

System information

  • OS: Windows 10
  • Version of supabase-js: -
  • Version of Node.js: 18.16.1

Additional context

This is an "easy" fix, I've traced the problem to the "match_filter" function (query.gd:165), where the filter string is lowercase "in" instead of "In".
image

However, before commiting a PR I want to test the other commands (and maybe others have tried and tested them)

@f-montanari f-montanari added the bug Something isn't working label Sep 9, 2024
@f-montanari
Copy link
Author

Closing as it's a duplicate of #71

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

1 participant