Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.6k views
in Technique[技术] by (71.8m points)

node mongo mongoose如何从数据库映射出schema

我知道这个问题可能挺小白的(本人后端小白),不过真的是查了半天没查明白。问题是这样的:
我看了一些mongoose的文档,要对数据库操作都要先定义一个schema,这玩意我大概知道他是啥,但是文档里schema都是手写的,我觉得好麻烦,也觉得不科学,那么有没有从数据库的某个表,直接映射一个schema出来而不用自己手写的方法呢。。。。。谢谢大家。。。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...