Created
May 11, 2021 22:27
-
-
Save yemmyharry/b69cc8deace9f6816a337f45dfda0d4f to your computer and use it in GitHub Desktop.
schema for image tutorial
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mongoose from "mongoose"; | |
const postSchema = mongoose.Schema({ | |
myFile: String, | |
}); | |
const Post = mongoose.model("Post", postSchema); | |
export default Post; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment