
I'm trying to use the GraphQL API to return a single attribute along with the _id, rather than the entire document. According to the documentation, the following should work:
query {
databasesListDocuments(
databaseId: "${DATABASE_ID}",
collectionId: "${COLLECTION_ID}"
) {
total
documents {
_id
data {
attribute1
}
}
}
}
However, I'm getting the following error:
Response: {"errors":[{"message":"Field data of type String must not have a sub selection.","extensions":{"category":"graphql"},"locations":[{"line":9,"column":16}]}]}
The following doesn't work either:
query {
databasesListDocuments(
databaseId: "${DATABASE_ID}",
collectionId: "${COLLECTION_ID}"
) {
total
documents {
_id
attribute1
}
}
}
Any ideas what I'm doing wrong?
Recommended threads
- Subdomain failed verification
So I wanted to do a custom subdomain, because local storage doesn't work for me, but I've tried it a long time ago, it didn't work for me, and now I'm trying ag...
- Sites 30MB limit from GitHub
I’m deploying a site from github as Other type on the Hobby plan. It is actually a Flutter web app but it’s in a subdirectory with the root being an html landin...
- [bug] API response is good but UI don't ...
Hi guys! When i got my object, it have billingInfo relation, in the web ui i just got pading state, and the row shows object is null, but when i work whit this...
