database-ql
Advanced tools
Comparing version 0.8.2 to 1.0.0-beta.2
{ | ||
"name": "database-ql", | ||
"version": "0.8.2", | ||
"version": "1.0.0-beta.2", | ||
"description": "Database interface for laf", | ||
@@ -17,3 +17,3 @@ "main": "dist/commonjs/index.js", | ||
"type": "git", | ||
"url": "git+https://github.com/lafjs/laf.git" | ||
"url": "git+https://github.com/labring/laf.git" | ||
}, | ||
@@ -43,3 +43,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "ba553db1f15d45e00507e1afc1a4c69496d425ba" | ||
"gitHead": "d2808decff922bc7248ee1879ab30c59dfc8a154" | ||
} |
@@ -374,3 +374,3 @@ | ||
| ---- | ------ | ---- | --------------------------------------- | | ||
| - | object | 是 | 要过滤的字段,不返回传false,返回传true | | ||
| - | object | 是 | 要过滤的字段,不返回传0,返回传1 | | ||
@@ -380,5 +380,5 @@ 使用示例 | ||
```js | ||
collection.field({ 'age': true }) | ||
collection.field({ 'age': 1 }) | ||
``` | ||
备注:只能指定要返回的字段或者不要返回的字段。即{'a': true, 'b': false}是一种错误的参数格式 | ||
备注:只能指定要返回的字段或者不要返回的字段。即{'a': 1, 'b': 0}是一种错误的参数格式 | ||
@@ -607,3 +607,3 @@ ### 查询指令 | ||
const promiseList = res.data.map(document => { | ||
return collection.doc(document.id).remove(); | ||
return collection.doc(document._id).remove(); | ||
}); | ||
@@ -610,0 +610,0 @@ Promise.all(promiseList); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
485686