You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Target: merge into 1 usersGroup, return for GraphQL usage
Current solution:
(better choice) Create one SQL query instead of 3
If the results are relatively small without pagination, we can do "$usersGroup1->toArray()" then array_merge() with other arrays, then finally return an array of merged User[].
The text was updated successfully, but these errors were encountered:
Question: how to merge 3 User[]|ResultIterator ? without breaking the object structure?
Pagination and sort issues should be considered.
Example:
$usersGroup1 = $this->userDao->getAvailableCaptains();
$usersGroup2 = $this->userDao->getAvailableCoCaptains();
$usersGroup3 = $this->userDao->getAvailableTrainees();
Target: merge into 1 usersGroup, return for GraphQL usage
Current solution:
The text was updated successfully, but these errors were encountered: