Back

[SOLVED] Query a nested attribute?

  • 0
  • Databases
djcali
3 Jun, 2023, 17:24

Hello, I have a collection "events" which has a relationship with a collection "staff".

Is there a way to query all the events for a certain staff member?

Something like: Query.equal("events.staff.id" : "abc123")

Thanks!

TL;DR
The user wants to know how to query all events associated with a specific staff member in a nested attribute. The solution is to use the Query.equal method with the nested attribute.
djcali
3 Jun, 2023, 23:36

Ok cool. Will be added later. Thanks.

djcali
3 Jun, 2023, 23:39

[SOLVED] Query a nested attribute?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more