With the following query Q('io.cozy.files').getById(id), we call the GET /files/:file-id route from cozy-stack.
This route return the following object :
{
links: {...},
data: {...},
included: [{...}] // if id it is a directory, it contains the list of files and sub-directories inside (paginated 30 by 30)
}
However, when using useQuery, the included field is not returned. It is correctly returned when calling directly client.query.
With the following query
Q('io.cozy.files').getById(id), we call theGET /files/:file-idroute from cozy-stack.This route return the following object :
However, when using
useQuery, the included field is not returned. It is correctly returned when calling directlyclient.query.