如何使用autovalue连接autoform,meteor方法,检查参数和字段?

时间:2015-01-26 14:48:40

标签: meteor meteor-autoform

我使用autoform和方法。在服务器端,我必须使用check(item, Schema.item)方法。一切都很好,直到我决定添加一个带有autovalue的字段createdAt。现在我无法在方法中传递check(),因为这个字段没有形成,我想插入AutoValue ......我要做什么?

1 个答案:

答案 0 :(得分:0)

如果您没有使用为您调用干净的collection2,您可能需要在致电检查之前致电清洁。

干净(DOC);

clean()调用你的autoValue函数。