Next, we are going to update our message model. We are going to save categories, documentSentiment, entities, sentences, tokens, and language. Update server\models\message.ts as shown in the following code:
// SNIPP SNIPPnlpCategories: [{ type: Schema.Types.Mixed, default: []}],nlpDocumentSentiment: { type: Schema.Types.Mixed},nlpEntities: [{ type: Schema.Types.Mixed, default: []}],nlpSentences: [{ type: Schema.Types.Mixed, default: []}],nlpTokens: [{ type: Schema.Types.Mixed, default: []}],nlpLanguage: String// SNIPP SNIPP