Open newton-migosi opened 1 year ago
add tables for library entries
const authorSchema = Schema({ name: String, stories: [{ type: Schema.Types.ObjectId, ref: "Story" }], }); const storySchema = Schema({ author: { type: Schema.Types.ObjectId, ref: "Author" }, title: String, });
https://www.yesodweb.com/book/persistent
add tables for library entries