Skip to content
Back

Relationship Attributes not returned in GET Calls

  • 0
  • 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 being returned in GET calls after a recent schema update in the production database. This issue is causing functionalities in the application to break. The user has shared the appwrite.json on GitHub for reference.
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

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