@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.
Files changed (2) hide show
  1. package/README.md +7 -2
  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, getRepository } from '@uql/core';
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: ['id', 'picture'] },
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
@@ -3,7 +3,7 @@
3
3
  "homepage": "https://uql.io",
4
4
  "description": "flexible and efficient ORM, with declarative JSON syntax and smart type-safety",
5
5
  "license": "MIT",
6
- "version": "0.4.88",
6
+ "version": "0.4.89",
7
7
  "main": "index.js",
8
8
  "types": "index.d.ts",
9
9
  "scripts": {