Closed torch2424 closed 9 years ago
@julianpoy I am assigning you to this as I feel like you're best suited for this, and if you have any questions, feel free to ask
@julianpoy @Jadex1 Could you please help me out? I am not entirely sure if my logic is correct.
Julian told me to look into some linking thing in the mongo docs http://mongoosejs.com/docs/populate.html
the link above shows how to save references to other objects in the backend, and get that information
After having more brain power from coffee, I can see why we would use this to get info from the backend.
I will go ahead and try to get the backend the names of those users in it's response
in branch giftcardPopulate
As of right now, the naming schemes of the giftcards schema is quite confusing, I guess from ID and to ID are the actual databse ids. Not the names of the two users. We need to add fields for this, and update the documentation accordingly