Let's assume I have the following query:
const ownersIds = [/* Array with 1k records or more */];
const ownersIdsFilter = ownersIds.map(id => {
ownerId: { eq: id }
});
const { data: todos, errors } = await client.models.Todo.list({
filter: {
or: ownersIdsFilter
}
});
I am not feeling well about this query to be honest, and I am in favor maybe for a 1-1 relation instead!
Any advise, recommendations or tips!