MongoDB 사용하기
스키마 정의하기스키마: 데이터의 틀import mongoose from "mongoose";const TaskSchema = new mongoose.Schema( { titile: { type: String, }, description: { type: String, }, siComplete: { type: Boolean, default: false, }, }, { // timestamps 사용시 mongo가 알아서 create, update app 필드를 생성&관리함 timestamps: true, });// 첫..
JavaScript/JS백엔드
2025. 1. 1. 15:11