I'm using groupBy to retrieve training logs, grouped by user -- using the REST API. The user is a record in the directus_users collection. The query looks like this:
https://myproject.directus.app/items/training_logs?groupBy[]=user&aggregate[count]=date
It returns something like this:
{
"data": [
{
"user": "1fe56e5c-3ee7-4a11-9105-8eeaabc76f99",
"count": {
"date": "1"
}
},
{
"user": "45543bd7-f435-459d-923b-003b64331fd6",
"count": {
"date": "9"
}
}
]
}
However, I'm trying to return the user's first_name and last_name. The user making the call has full READ access to the directus_users collection. How can I modify the API call to retrieve related items for display purposes?