Back

New Attributes Not Contained in Query Result

  • 0
  • Databases
  • Web
  • Cloud
maru
1 Apr, 2024, 15:15

I have a collection, for which I modified some attributes yesterday (>12h ago): I deleted some, added a few and modified one. I was able to fill the new attributes in the Cloud Console, however when I try to fetch the entries from the JS SDK, the result doesn't include any of the modified attributes. I tried the query from the browser and from a Function with the same result.

appwrite v13.0.2 node-appwrite v11.1.1

This is how I query the collection:

TypeScript
databases.listDocuments<IUser>(CDBApp, CColUser, [
  Query.equal('$id', userId)
])

This is a sample response:

TypeScript
{
  "$id":"6519ecddb73e774af129",
  "avatarId":"655b5643cb16ad8fc10a",
  "bannerId":"658b07689dda7b94861b",
  "followers":0,
  "following":0,
  "numRatings":0,
  "posts":0,
  "rating":0,
  "sumRatings":0
}

And these are the attributes:

TL;DR
Developers modified attributes in collection on Cloud Console over 12 hours ago but they are not being fetched with JS SDK query. Solution: Ensure querying for the latest data.
maru
1 Apr, 2024, 15:21

By the way, this is my view in the Cloud Console:

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more