supabase-community / godot-engine.supabase

A lightweight addon which integrates Supabase APIs for Godot Engine out of the box.
MIT License
159 stars 17 forks source link

query.gd error in match_filter function #71

Open Giobar97 opened 9 months ago

Giobar97 commented 9 months ago

It's not possible to send any database query containing the "In" function, receiving an "Invalid get index 'in' (on base: Dictionary)" error.

The problem is caused by line 171 of query.gd: Filters.IN: filter_str = "in" Which should instead be: Filters.IN: filter_str = "In"

Line 90 should also be changed accordingly, from: "eq", "neq", "lt", "gt", "lte", "gte", "like", "ilike", "Is", "in", "fts", "plfts", "phfts", "wfts": to: "eq", "neq", "lt", "gt", "lte", "gte", "like", "ilike", "Is", "In", "fts", "plfts", "phfts", "wfts":

The lowercase in is causing the issue.