@heybejs/query 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -0
- package/package.json +13 -1
package/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# @heybejs/query
|
|
2
|
+
|
|
3
|
+
The typed query syntax of [Heybe](https://github.com/emresandikci/heybe). The same `where`, `orderBy` and `expand` objects work on the server and in the browser, and are checked against the types `heybe typegen` writes for your collections.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npm install @heybejs/client @heybejs/query
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
const posts = await heybe.records("posts").findMany({
|
|
11
|
+
where: { status: "published", views: { gt: 50 } },
|
|
12
|
+
orderBy: { created: "desc" },
|
|
13
|
+
expand: { author: true },
|
|
14
|
+
});
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
It is a peer dependency of `@heybejs/client`. See [Queries](https://emresandikci.github.io/heybe/queries) for every operator.
|
|
18
|
+
|
|
19
|
+
## Documentation
|
|
20
|
+
|
|
21
|
+
https://emresandikci.github.io/heybe/queries
|
|
22
|
+
|
|
23
|
+
## License
|
|
24
|
+
|
|
25
|
+
[MIT](LICENSE)
|
package/package.json
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heybejs/query",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "Typed query syntax for Heybe, shared by the server and the client.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"heybe",
|
|
7
|
+
"query",
|
|
8
|
+
"filter",
|
|
9
|
+
"typescript",
|
|
10
|
+
"query-builder"
|
|
11
|
+
],
|
|
4
12
|
"type": "module",
|
|
5
13
|
"license": "MIT",
|
|
6
14
|
"exports": {
|
|
@@ -19,6 +27,10 @@
|
|
|
19
27
|
"url": "git+https://github.com/emresandikci/heybe.git",
|
|
20
28
|
"directory": "packages/query"
|
|
21
29
|
},
|
|
30
|
+
"homepage": "https://emresandikci.github.io/heybe/queries",
|
|
31
|
+
"bugs": {
|
|
32
|
+
"url": "https://github.com/emresandikci/heybe/issues"
|
|
33
|
+
},
|
|
22
34
|
"devDependencies": {
|
|
23
35
|
"@heybejs/configs": "0.0.0"
|
|
24
36
|
},
|