Rank 1: Thread
is it normal to have n/a as user and not the id of the user in my many to one collection ?
Votes
0
Replies
18
Participants
Unknown
Messages
19
Rank 1: Thread
is it normal to have n/a as user and not the id of the user in my many to one collection ?
How's that being created?
I mean, what the code to create it?
And what's the relationship?
Rank 1: Thread
Rank 1: Thread
i have a todo collection and a user collection
Rank 1: Thread
and i made a many to one in the todo to the user with 2 way relationship
Rank 1: Thread
Rank 1: Thread
when i try to get the data it works
Rank 1: Thread
it gives me the data related to the user
Rank 1: Thread
but the problem comes when i try to update the data
Rank 1: Thread
Rank 1: Thread
the newtodo have user in it with the right id
Rank 1: Thread
What’s in newtodo here?
Rank 1: Thread
this
And that came from listDocuments()/getDocument()?
Rank 1: Thread
the problem is that when i try get the data from listDocuments it gives me the right data but the user is null
Rank 1: Thread
so that's what's confusing me af