Saturday 30 May 2020

How do you define a schema for a comment in a microservices with two backends with one-database-per-service architecture?

I have a post backend and a comment backend and each have its own database. How should I define the schema for comment?const commentSchema = new Schema({ content: { type: String, }, author: { type: Number, }, date: { type: Date, } });

Submitted May 31, 2020 at 12:14AM by jesusscript

No comments:

Post a Comment