How to set a relation of a class through user console?

I created a class in moralis dashboard which has a column in relation with user class.

I tried to set to set the relation with user id as variable but it not work as expected.

Is there any other way to set relation manually through console?

You are trying to put an ID as a string into a column which has the type of a User.
Type mismatch

I understood that by the error.

I want to know if there a way to set this relationship between classes through console.

Did you try with user object directly without .id?

tried it just now…it gave similar error

Maybe this helps you

Tried this but it neither threw an error nor updated the relations in class.

So I went with an alternative by creating a column for User id which accepts a string, which is enough for my project.

1 Like