Localight / LocalightBackend

This will contain the backend of the database for the Backend.
http://localism.github.io/LocalightDocs/#/
0 stars 0 forks source link

We need to create a field for recipient and sender name in the Giftcards Schema #54

Closed torch2424 closed 9 years ago

torch2424 commented 9 years ago

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

torch2424 commented 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

torch2424 commented 9 years ago

@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

torch2424 commented 9 years ago

in branch giftcardPopulate