Closed
Description
API Platform version(s) affected: 4.*
Description
All collection relations return all records instead of related records
How to reproduce
Lets say I want to get a list of all my companies and the users related to those companies
- Create two related models (ex: company and user)
- Create a HasMany relation from first model to second model (company has many users)
- Try to query all companies with their users
query companies {
companies {
edges {
node {
id
name
users {
edges {
node{
id
}
}
}
}
}
}
}
- The returned users will be from all companies instead of the related company
Metadata
Metadata
Assignees
Labels
No labels