DBRef is not defined 求解
发布于 12 年前 作者 xiao2013 6073 次预览 最后一次回复是 12 年前 来自
var comment = { postId: this.postId, name: this.name, comment: this.comment, commentId:this.commentId, upid:new DBRef(‘users’,objectId(uid)) }; 我是想把comments文档和users文档做关联 但是执行到upid:new DBRef(‘users’,objectId(uid)) 时出错,提示 DBRef is not defined 用DBRef还需要有什么引用吗 求解
5 回复
恩 谢谢 是这样的 还有问题 想请教一下 就是这个DBRef 我要怎么用呢 它能很方面的获得users文档里面的东西吗 ? 希望能说的详细一些 有示例代码更好
@xiao2013 沉了。。。
恩,非常谢谢