@uql/core 0.4.88 → 0.4.89
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 +7 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -154,13 +154,18 @@ export class MeasureUnit {
|
|
|
154
154
|
## <a name="creation-of-queries"></a> Creation of Queries
|
|
155
155
|
|
|
156
156
|
```ts
|
|
157
|
-
import { getQuerier
|
|
157
|
+
import { getQuerier } from '@uql/core';
|
|
158
158
|
import { User } from './entity';
|
|
159
159
|
|
|
160
160
|
const querier = await getQuerier();
|
|
161
161
|
|
|
162
|
+
await this.querier.insertOne(User, {
|
|
163
|
+
email: 'lorem@example.com',
|
|
164
|
+
profile: { picture: 'ipsum.jpg' },
|
|
165
|
+
});
|
|
166
|
+
|
|
162
167
|
const users = await querier.findMany(User, {
|
|
163
|
-
$project: { id: true, email: true, profile: ['
|
|
168
|
+
$project: { id: true, email: true, profile: ['picture'] },
|
|
164
169
|
$filter: { email: { $iendsWith: '@google.com' } },
|
|
165
170
|
$sort: { createdAt: -1 },
|
|
166
171
|
$limit: 100,
|
package/package.json
CHANGED