EniXoOriginal post
Web Developer
Hello everyone, :appwritecheers:
I'm facing an issue using GraphQL in order to retrieve information from a user from prefs field.
GraphQL
https://cloud.appwrite.io/v1/graphqlquery { usersList { total users { _id name prefs { data } } }}```RESPONSE :```JSON{ "data": { "usersList": { "total": 1, "users": [ { "_id": "65eb064279c82abf12ee", "name": "EniXo", "prefs": null } ] } }}```I've tried with REST and it is working find 👀 https://cloud.appwrite.io/v1/users
RESPONSE (partial) :
```JSON
{
"total": 1,
"users": [
{
"$id": "65eb064279c82abf12ee",
"name": "EniXo",
"prefs": {
"firstName": "Valentin",
"lastName": "Lebarbanchon"
},
}
]
}
Are you aware of this issue or is it a miss configuration on my side ?
Thanks in advance :appwritebow:
Summary
Issue: Unable to retrieve information from the **prefs** field using GraphQL query `usersList`.
Solution: The issue seems to be with the GraphQL query, as the response shows `prefs` as null. Consider checking the query and potential misconfigurations.
Alternatively, the REST API endpoint `/users` provides the expected data.