How to get specific attribute data of a document using GraphQL instead of complete document.
- 0
- Web
- Databases
- General
- Cloud
- GraphQL

Can we get only specific attribute data of a document using GraphQL ? so dont need to fetch the whole document data. I need just need the data of particular attribute . I am using graphql.

not possible at the moment because the data is returned in 1 field

That's so disheartening to hear 😦 . I believe this contradicts the fundamental principle of GraphQL, which is to fetch only the necessary data. After all, the main advantage of GraphQL lies in its ability to provide precisely what's needed.
By the way, do you know if there are any plans on the roadmap to incorporate this feature?

understandable...we had a technical limitation due to the dynamic nature of the API response.
It would be best to create an issue for this. it's in our backlog, but there are other higher priority items at the moment

you might be able to pass a select query to have the api only return the attributes you want

oh is it.. you mean. i can still somehow fetch selected attribute data of document. can you provide me the document link. I will read through.

the select query here: https://appwrite.io/docs/apis/rest#queries

although i think that attribute should also be wrapped with double quotes...

can you confirm? 😁

this seems to be queries for rest. I hope it can be used with graphql as well.

Theoretically, you should be able to...I just don't know the syntax because I don't really know graphql 😬
Recommended threads
- Could not open input file: /usr/src/code...
I updated my selfhosted instance to `1.6.2` and the new service (`appwrite-task-stats-resources`) failed to start. The only log message I see is: ``` Could not ...
- A feature/Fix request
Whenever I use Appwrite then to see the items of document I've to click "columns" option and select those items that I want to see then if I refresh browser/pa...
- Custom Domain TLS Certificate Not Applie...
Added a custom domain, but gives me an error ``` Requested host does not match any Subject Alternative Names (SANs) on TLS certificate [3d45f294eb3f84a3350132a2...
