Skip to content
Init is coming / May 19 - 23
Back

Relationship attribute showing "n/a" even it's linked to related document in Appwrite cloud console.

  • 0
  • Databases
  • Cloud
Raja
22 Dec, 2023, 16:24

I've two collections, "products" and "collections" (name of the collection in database) , products collection has one way relationship with "collections" collection, I've updated the data means I linked the product with related collection, but its showing "n/a", but I can see the related document in data tab of the product, and I can't access the data from my code, since its showing n/a.

First I thought it's because of one way relationship, but I have one way relationship in other collections, there I can see the data in the attribute.

TL;DR
Developers are experiencing an issue where a relationship attribute is showing "n/a" even though it's linked to a related document in the Appwrite cloud console. One suggestion is to recreate the collection or change the attribute name. An older issue has been created on GitHub regarding this problem.
Raja
22 Dec, 2023, 16:28

Relationship attribute showing "n/a" even it's linked to related document in Appwrite cloud console.

Muniraja
22 Dec, 2023, 16:41

<@462046107556511744> please check this

-N I N J A-
22 Dec, 2023, 16:47

Bro that is an old issue I have also created issue here - https://github.com/appwrite/appwrite/issues/6944

-N I N J A-
22 Dec, 2023, 16:48

Change attribute name from "collection" to other word.

Muniraja
22 Dec, 2023, 16:52

Let me try that<@895918646877122561>

Raja
22 Dec, 2023, 17:01

<@462046107556511744> now its stuck

Drake
22 Dec, 2023, 17:08

Recreate the collection

Raja
22 Dec, 2023, 17:12

if the collection has lot of documents and then this happens, I'll loose all the data. currently I can do that, but in future this happens that will be a problem.

Drake
22 Dec, 2023, 17:26

Can you ignore the stuck attribute?

Raja
22 Dec, 2023, 17:31

I try to create another attribute as replacement, it's failed.

Drake
22 Dec, 2023, 17:31

Check list collection API response and look at the attribute

Raja
22 Dec, 2023, 17:34

<@462046107556511744> this ?

Drake
22 Dec, 2023, 17:35

No the JSON response

Raja
22 Dec, 2023, 17:36

tried to store the data, still same and for category attribute, which got stuck, I'm getting unknown attribute.

Raja
22 Dec, 2023, 17:36

undefined

Drake
22 Dec, 2023, 17:36

What do you mean? Share the JSON please

Raja
22 Dec, 2023, 17:37

I'm using it in flutter, I'm not getting any data and now documents are not linking in the console

Raja
22 Dec, 2023, 17:40

<@462046107556511744> its showing null in category attribute

Kanika
29 Sep, 2024, 17:28

@Raja is your error solved ?? I am facing the same issue

Showdey
1 Oct, 2024, 17:54

Me too, @Steven is this related to 1.6? I'm on self hosted and cannot create it without n/a

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