Skip to content
Back

Relationship Attributes not returned in GET Calls

  • 0
  • 4
  • Databases
  • REST API
  • Cloud
M4dhav
14 Nov, 2025, 06:11

REST Calls to my database do not return the values of Relationship Attributes in a document, which has caused several functionalities in my application to break.

TL;DR
Relationship attributes are not returned in GET calls, and using * as a wildcard query does not return any relationship attributes. The issue was due to a change that required opting in for relationship loading, which was not backward compatible for some applications. To fix this, users need to explicitly specify the relationship instead of using * as a wildcard. The user pushed an update to their production environment to address the issue.
M4dhav
14 Nov, 2025, 06:12

I recently updated the schema of my prod db and ever since GET Calls to my DB have not been returning values of any Relationship Attribute from my Collection

M4dhav
14 Nov, 2025, 06:13

As you can see in this image (Highlighted Row number 70), friends is a relationship attribute which contains a document (is not empty)

M4dhav
14 Nov, 2025, 06:14

However this is the result recieved on GET Calls to the same document

M4dhav
14 Nov, 2025, 06:14

As you can see, none of the Relationship Attributes are present (followers, friends, userReports)

M4dhav
14 Nov, 2025, 06:15

But I was not expecting the attrs with no documents to show up anyways, because I know that on Schema updates by default the added fields remain null until an update call is recieved by the document

M4dhav
14 Nov, 2025, 06:16

However, this behaviour also occurs even when the field is clearly populated

M4dhav
14 Nov, 2025, 06:17

On line number 19 of the GET Response we can see 68e642bd0006010fc35e which, according to my Appwrite.json is a two-way key for a relationship attribute

M4dhav
14 Nov, 2025, 06:18

If you guys need to take a look, entire appwrite.json is available on https://github.com/AOSSIE-Org/Resonate-Backend/blob/dev/appwrite.json

M4dhav
14 Nov, 2025, 06:19

@Jake Could you please take a look at this? Prod is broken since last night and I need to get this fixed asap

14 Nov, 2025, 14:04

<@462046107556511744> Can you please take a look at this, been waiting all day for some resolution and support

14 Nov, 2025, 14:04

Key features have been broken for over 2 days between the OAuth issue from yesterday and this

14 Nov, 2025, 20:39

I'm also facing same issue, relationship attributes are not getting fetched

15 Nov, 2025, 13:32

loading while using * as a wildcard query also returns none of the relationship attributes

15 Nov, 2025, 13:35

Also, the blog post announcing this change (https://appwrite.io/blog/post/announcing-opt-in-relationship-loading) mentions this:

"Adopting this new feature is seamless and requires no additional code changes for your existing setups. Old SDK versions maintain their existing behavior, ensuring full backward compatibility. Meanwhile, new queries and projects immediately benefit from optimized loading, achieving maximum efficiency without hassle."

However, atleast for my application, these were not backward compatible, as key functionalities broke down in Prod

17 Nov, 2025, 14:45

If you upgraded your SDK, you adopted the opt in relationship.

17 Nov, 2025, 14:46

You can't just use *. You need to explicitly specify the relationship

18 Nov, 2025, 06:37

Alright, thanks for the response. I've pushed an update to my prod.

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