GodotNuts / GodotFirebase

Implementations of Firebase for Godot using GDScript
MIT License
530 stars 76 forks source link

Query Firebase Firestore documents by the ID #343

Open jacozsz opened 1 year ago

jacozsz commented 1 year ago

I'm trying to make a query but I need to filter that there are not show some documents. example:

query.from("TORNEY")

query.where('documentId', FirestoreQuery.OPERATOR.NOT_IN, torney)

torney is s array of tournaments in which the player is registered

i have a tab that I show the tournaments in which the player is registered

and another tab to show Available tournaments

I've been searching and I find something like this firebase.firestore.FieldPath.documentId(), is there something similar in the plugin to use it?

WolfgangSenff commented 3 months ago

Sorry it took us so long to get back to you on this! I am currently doing a big refactor of the Firestore implementation, and that's going to involve queries. I'll have to look into this, but if a FieldPath query exists for the document ID, then in theory we should be able to support it! I'll look into it when I can.