
Hello everyone, :appwritecheers:
I'm facing an issue using GraphQL in order to retrieve information from a user from prefs field.
TypeScript
https://cloud.appwrite.io/v1/graphql
query {
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
TypeScript
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:
TL;DR
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.Recommended threads
- Getting issue while migrating from Self ...
i try to migrating my project but when do this error come and dont allow to crate that migration
- Pending upload some file, but not for ot...
When upload this file, always got pending. But when I upload another file, it works. Why?
- Need help setting up this error is showi...
You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy. If you're the app developer, register the redirect URI in the Google Cl...
