I have a Schema where it shoukd save "# teste" as String,but when I create a new date,it saves as null. Basically I am saving it like that cause I am using markdown it in frontend to render this value as html.
const { Schema } = require("mongoose");
const mongoose = require("../database/database");
const shortid = require("shortid");
const moment = require("moment")
const ServerSchema = new Schema({
description:{
type: String ,
require:true,
default: "## h2 Heading"
},
});
const server = mongoose.model("servers", ServerSchema);
module.exports = server;
how can I make it save those symbols ?