W
W
Wayix2020-10-08 16:22:05
Node.js
Wayix, 2020-10-08 16:22:05

Creating an array of mongodb objects?

const chatSchema = {
  id: {
    type: Number,
    required: true,
  },
   chatName: {
     type: String
     required: true,
  },
    chatCreated {
      type: Number,
      required: true,
  },
}


and I need to make after chatCreated chatUser which will contain each user from the conversation.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question