Hey guys,
In my Moralis Database I have an object called Form. This object has a column called Owner. This Owner column is a relation to the User table. Each Form row has one Owner attached.
The problem is that I canât fetch the Owner object. I can perfectly fetch each Form I need, and I can read and retrieve all properties of the Form, just not the Owner (User) object.
I know I need to manually fetch it using:
owner = form.get(âownerâ);
owner.fetch().then((owner) => {
âŚetc.
However, it (Nodejs console) gives me an error: cannot read object owner.
What am I doing wrong? Each Form should have just one Owner (User), should I use Pointers instead of Relation field type? Or should I fetch the Owner differently?
Ultimately, I want to be able to read the username, emailaddress fields etc. of the Owner (User) of the Form.
Thank you!
Roel