Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想创建一个像这里一样的自动验证方法,但使用已经定义并附加到集合的模式。
为此,有一种方法可以提取附加的集合模式,例如:
validate: Books.getSchema().validator(),
?
谢谢!
它Books.simpleSchema()返回附加到给定集合的模式对象
Books.simpleSchema()