Add support for use ReferenceManyField
I try use react-admin-firebase(r a f) and I have data structure how to example in react-admin.
For instance, if a user has many books and the books resource exposes a user_id field, <ReferenceManyField> can fetch all the books authored by a given user.
But r a f get all collection books and filtering.
I think apiGetManyReference should create query and if pass filter object in <ReferenceManyField>, this query should create with where functions.
This query be like that
for (const nameField in filter) {
query.where(nameField, '==', filter[nameField]);
}
What you think about this?
Hi @gespispace, Apologies for the late response, yeah that should be possible, would you be able to create an example project for us to look at, so we can understand it a bit better? Cheers, Ben