The response format when calling cozy.client.files.query and cozy.client.data.query is a bit different. For data, the format is documented here, but for files, I couldn't find it.
Anyway, right now (AFAIK) we only use cozy.client.files.query so everything works fine, but if you try to query the data API (querying io.cozy.photos.albums for example) things will explode. So here's a preventive fix for that.
The response format when calling
cozy.client.files.query
andcozy.client.data.query
is a bit different. For data, the format is documented here, but for files, I couldn't find it.Anyway, right now (AFAIK) we only use
cozy.client.files.query
so everything works fine, but if you try to query the data API (queryingio.cozy.photos.albums
for example) things will explode. So here's a preventive fix for that.