These are chat archives for Automattic/mongoose

Feb 2017
Feb 25 2017 10:52
  username: String,
  password: String,
  avatarUrl: String,
  friends: [
    { with: "ref to some other user", convo: "ref to the convo"}
  participants: [refToUser], // at most two for now
  messages: [
    {from: refToUser, timestamp: String, message: String}
Is this a good schema for a kik like app?
Mikael Pettersson
Feb 25 2017 21:18
If I have 2 collections: sections and boards, where boardshave a belongsTo relationship with a sectionsobject, How can I populate a sectionsobjects boardsobjects without keeping a reference of all the boards in the sectionsobject?