@@ -44,9 +44,12 @@ redis-om
44
44
- [ Entity] ( README.md#entity )
45
45
- [ EntityData] ( README.md#entitydata )
46
46
- [ EntityDataValue] ( README.md#entitydatavalue )
47
+ - [ EntityInternal] ( README.md#entityinternal )
48
+ - [ EntityKeys] ( README.md#entitykeys )
47
49
- [ FieldDefinition] ( README.md#fielddefinition )
48
50
- [ FieldType] ( README.md#fieldtype )
49
51
- [ IdStrategy] ( README.md#idstrategy )
52
+ - [ InferSchema] ( README.md#inferschema )
50
53
- [ NumberArrayFieldDefinition] ( README.md#numberarrayfielddefinition )
51
54
- [ NumberFieldDefinition] ( README.md#numberfielddefinition )
52
55
- [ Point] ( README.md#point )
@@ -94,7 +97,7 @@ All configuration properties that any field might have, regardless of type.
94
97
95
98
#### Defined in
96
99
97
- [ lib/schema/definitions.ts:5 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/definitions.ts#L5 )
100
+ [ lib/schema/definitions.ts:7 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/definitions.ts#L7 )
98
101
99
102
___
100
103
@@ -106,7 +109,7 @@ A field representing a boolean.
106
109
107
110
#### Defined in
108
111
109
- [ lib/schema/definitions.ts:78 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/definitions.ts#L78 )
112
+ [ lib/schema/definitions.ts:80 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/definitions.ts#L80 )
110
113
111
114
___
112
115
@@ -132,7 +135,7 @@ A function that defines a circle for `.inCircle` searches.
132
135
133
136
#### Defined in
134
137
135
- [ lib/search/where-point.ts:8] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/search/where-point.ts#L8 )
138
+ [ lib/search/where-point.ts:8] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/search/where-point.ts#L8 )
136
139
137
140
___
138
141
@@ -144,7 +147,7 @@ The configuration properties that all fields have in common.
144
147
145
148
#### Defined in
146
149
147
- [ lib/schema/definitions.ts:75 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/definitions.ts#L75 )
150
+ [ lib/schema/definitions.ts:77 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/definitions.ts#L77 )
148
151
149
152
___
150
153
@@ -156,7 +159,7 @@ The type of data structure in Redis to map objects to.
156
159
157
160
#### Defined in
158
161
159
- [ lib/schema/options.ts:2] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/options.ts#L2 )
162
+ [ lib/schema/options.ts:2] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/options.ts#L2 )
160
163
161
164
___
162
165
@@ -168,19 +171,19 @@ A field representing a date/time.
168
171
169
172
#### Defined in
170
173
171
- [ lib/schema/definitions.ts:83 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/definitions.ts#L83 )
174
+ [ lib/schema/definitions.ts:85 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/definitions.ts#L85 )
172
175
173
176
___
174
177
175
178
### Entity
176
179
177
- Ƭ ** Entity** : [ ` EntityData ` ] ( README.md#entitydata ) & { ` [EntityId]? ` : ` string ` ; ` [EntityKeyName]? ` : ` string ` }
180
+ Ƭ ** Entity** : [ ` EntityData ` ] ( README.md#entitydata ) & [ ` EntityInternal ` ] ( README.md#entityinternal )
178
181
179
182
Defines the objects returned from calls to [ repositories] ( classes/Repository.md ) .
180
183
181
184
#### Defined in
182
185
183
- [ lib/entity/entity.ts:8 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/entity/entity.ts#L8 )
186
+ [ lib/entity/entity.ts:16 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/entity/entity.ts#L16 )
184
187
185
188
___
186
189
@@ -196,7 +199,7 @@ The free-form data associated with an [Entity](README.md#entity).
196
199
197
200
#### Defined in
198
201
199
- [ lib/entity/entity.ts:18 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/entity/entity.ts#L18 )
202
+ [ lib/entity/entity.ts:20 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/entity/entity.ts#L20 )
200
203
201
204
___
202
205
@@ -208,7 +211,40 @@ Valid types for values in an [Entity](README.md#entity).
208
211
209
212
#### Defined in
210
213
211
- [ lib/entity/entity.ts:23] ( https://github.com/redis/redis-om-node/blob/d8438f7/lib/entity/entity.ts#L23 )
214
+ [ lib/entity/entity.ts:25] ( https://github.com/redis/redis-om-node/blob/1acd1cf/lib/entity/entity.ts#L25 )
215
+
216
+ ___
217
+
218
+ ### EntityInternal
219
+
220
+ Ƭ ** EntityInternal** : ` Object `
221
+
222
+ #### Type declaration
223
+
224
+ | Name | Type | Description |
225
+ | :------ | :------ | :------ |
226
+ | ` [EntityId]? ` | ` string ` | The unique ID of the [ Entity] ( README.md#entity ) . Access using the [ EntityId] ( README.md#entityid ) Symbol. |
227
+ | ` [EntityKeyName]? ` | ` string ` | The key the [ Entity] ( README.md#entity ) is stored under inside of Redis. Access using the [ EntityKeyName] ( README.md#entitykeyname ) Symbol. |
228
+
229
+ #### Defined in
230
+
231
+ [ lib/entity/entity.ts:7] ( https://github.com/redis/redis-om-node/blob/1acd1cf/lib/entity/entity.ts#L7 )
232
+
233
+ ___
234
+
235
+ ### EntityKeys
236
+
237
+ Ƭ ** EntityKeys** <` T ` \> : ` Exclude ` <keyof ` T ` , keyof [ ` EntityInternal ` ] ( README.md#entityinternal ) \>
238
+
239
+ #### Type parameters
240
+
241
+ | Name | Type |
242
+ | :------ | :------ |
243
+ | ` T ` | extends [ ` Entity ` ] ( README.md#entity ) |
244
+
245
+ #### Defined in
246
+
247
+ [ lib/entity/entity.ts:17] ( https://github.com/redis/redis-om-node/blob/1acd1cf/lib/entity/entity.ts#L17 )
212
248
213
249
___
214
250
@@ -220,7 +256,7 @@ Contains instructions telling how to map a property on an [Entity](README.md#ent
220
256
221
257
#### Defined in
222
258
223
- [ lib/schema/definitions.ts:117 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/definitions.ts#L117 )
259
+ [ lib/schema/definitions.ts:119 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/definitions.ts#L119 )
224
260
225
261
___
226
262
@@ -232,7 +268,7 @@ Valid field types for a [FieldDefinition](README.md#fielddefinition).
232
268
233
269
#### Defined in
234
270
235
- [ lib/schema/definitions.ts:2 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/definitions.ts#L2 )
271
+ [ lib/schema/definitions.ts:4 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/definitions.ts#L4 )
236
272
237
273
___
238
274
@@ -252,7 +288,23 @@ A function that generates random entityIds.
252
288
253
289
#### Defined in
254
290
255
- [ lib/schema/options.ts:5] ( https://github.com/redis/redis-om-node/blob/d8438f7/lib/schema/options.ts#L5 )
291
+ [ lib/schema/options.ts:5] ( https://github.com/redis/redis-om-node/blob/1acd1cf/lib/schema/options.ts#L5 )
292
+
293
+ ___
294
+
295
+ ### InferSchema
296
+
297
+ Ƭ ** InferSchema** <` T ` \> : ` T ` extends [ ` Schema ` ] ( classes/Schema.md ) <infer R\> ? ` R ` : ` never `
298
+
299
+ #### Type parameters
300
+
301
+ | Name |
302
+ | :------ |
303
+ | ` T ` |
304
+
305
+ #### Defined in
306
+
307
+ [ lib/schema/schema.ts:181] ( https://github.com/redis/redis-om-node/blob/1acd1cf/lib/schema/schema.ts#L181 )
256
308
257
309
___
258
310
@@ -264,7 +316,7 @@ A field representing an array of numbers.
264
316
265
317
#### Defined in
266
318
267
- [ lib/schema/definitions.ts:93 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/definitions.ts#L93 )
319
+ [ lib/schema/definitions.ts:95 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/definitions.ts#L95 )
268
320
269
321
___
270
322
@@ -276,7 +328,7 @@ A field representing a number.
276
328
277
329
#### Defined in
278
330
279
- [ lib/schema/definitions.ts:88 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/definitions.ts#L88 )
331
+ [ lib/schema/definitions.ts:90 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/definitions.ts#L90 )
280
332
281
333
___
282
334
@@ -295,7 +347,7 @@ Defines a point on the globe using longitude and latitude.
295
347
296
348
#### Defined in
297
349
298
- [ lib/entity/entity.ts:26 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/entity/entity.ts#L26 )
350
+ [ lib/entity/entity.ts:28 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/entity/entity.ts#L28 )
299
351
300
352
___
301
353
@@ -307,7 +359,7 @@ A field representing a point on the globe.
307
359
308
360
#### Defined in
309
361
310
- [ lib/schema/definitions.ts:98 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/definitions.ts#L98 )
362
+ [ lib/schema/definitions.ts:100 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/definitions.ts#L100 )
311
363
312
364
___
313
365
@@ -319,7 +371,7 @@ A conventional Redis connection.
319
371
320
372
#### Defined in
321
373
322
- [ lib/client/client.ts:8] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/client/client.ts#L8 )
374
+ [ lib/client/client.ts:8] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/client/client.ts#L8 )
323
375
324
376
___
325
377
@@ -331,7 +383,7 @@ A clustered Redis connection.
331
383
332
384
#### Defined in
333
385
334
- [ lib/client/client.ts:11] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/client/client.ts#L11 )
386
+ [ lib/client/client.ts:11] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/client/client.ts#L11 )
335
387
336
388
___
337
389
@@ -343,19 +395,25 @@ A Redis connection, clustered or conventional.
343
395
344
396
#### Defined in
345
397
346
- [ lib/client/client.ts:14] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/client/client.ts#L14 )
398
+ [ lib/client/client.ts:14] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/client/client.ts#L14 )
347
399
348
400
___
349
401
350
402
### SchemaDefinition
351
403
352
- Ƭ ** SchemaDefinition** : ` Record ` <` string ` , [ ` FieldDefinition ` ] ( README.md#fielddefinition ) \>
404
+ Ƭ ** SchemaDefinition** < ` T ` \> : ` Record ` <[ ` EntityKeys ` ] ( README.md#entitykeys ) < ` T ` \> , [ ` FieldDefinition ` ] ( README.md#fielddefinition ) \>
353
405
354
406
Group of [ FieldDefinition] ( README.md#fielddefinition ) s that define the schema for an [ Entity] ( README.md#entity ) .
355
407
408
+ #### Type parameters
409
+
410
+ | Name | Type |
411
+ | :------ | :------ |
412
+ | ` T ` | extends [ ` Entity ` ] ( README.md#entity ) = ` Record ` <` string ` , ` any ` \> |
413
+
356
414
#### Defined in
357
415
358
- [ lib/schema/definitions.ts:123 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/definitions.ts#L123 )
416
+ [ lib/schema/definitions.ts:125 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/definitions.ts#L125 )
359
417
360
418
___
361
419
@@ -378,7 +436,7 @@ Configuration options for a [Schema](classes/Schema.md).
378
436
379
437
#### Defined in
380
438
381
- [ lib/schema/options.ts:11] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/options.ts#L11 )
439
+ [ lib/schema/options.ts:11] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/options.ts#L11 )
382
440
383
441
___
384
442
@@ -390,7 +448,7 @@ Valid values for how to use stop words for a given [Schema](classes/Schema.md).
390
448
391
449
#### Defined in
392
450
393
- [ lib/schema/options.ts:8] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/options.ts#L8 )
451
+ [ lib/schema/options.ts:8] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/options.ts#L8 )
394
452
395
453
___
396
454
@@ -402,7 +460,7 @@ A field representing an array of strings.
402
460
403
461
#### Defined in
404
462
405
- [ lib/schema/definitions.ts:107 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/definitions.ts#L107 )
463
+ [ lib/schema/definitions.ts:109 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/definitions.ts#L109 )
406
464
407
465
___
408
466
@@ -414,33 +472,39 @@ A field representing a whole string.
414
472
415
473
#### Defined in
416
474
417
- [ lib/schema/definitions.ts:102 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/definitions.ts#L102 )
475
+ [ lib/schema/definitions.ts:104 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/definitions.ts#L104 )
418
476
419
477
___
420
478
421
479
### SubSearchFunction
422
480
423
- Ƭ ** SubSearchFunction** : (` search ` : [ ` Search ` ] ( classes/Search.md ) ) => [ ` Search ` ] ( classes/Search.md )
481
+ Ƭ ** SubSearchFunction** <` T ` \> : (` search ` : [ ` Search ` ] ( classes/Search.md ) <` T ` \> ) => [ ` Search ` ] ( classes/Search.md ) <` T ` \>
482
+
483
+ #### Type parameters
484
+
485
+ | Name | Type |
486
+ | :------ | :------ |
487
+ | ` T ` | extends [ ` Entity ` ] ( README.md#entity ) |
424
488
425
489
#### Type declaration
426
490
427
- ▸ (` search ` ): [ ` Search ` ] ( classes/Search.md )
491
+ ▸ (` search ` ): [ ` Search ` ] ( classes/Search.md ) < ` T ` \>
428
492
429
493
A function that takes a [ Search] ( classes/Search.md ) and returns a [ Search] ( classes/Search.md ) . Used in nested queries.
430
494
431
495
##### Parameters
432
496
433
497
| Name | Type |
434
498
| :------ | :------ |
435
- | ` search ` | [ ` Search ` ] ( classes/Search.md ) |
499
+ | ` search ` | [ ` Search ` ] ( classes/Search.md ) < ` T ` \> |
436
500
437
501
##### Returns
438
502
439
- [ ` Search ` ] ( classes/Search.md )
503
+ [ ` Search ` ] ( classes/Search.md ) < ` T ` \>
440
504
441
505
#### Defined in
442
506
443
- [ lib/search/search.ts:26 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/search/search.ts#L26 )
507
+ [ lib/search/search.ts:31 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/search/search.ts#L31 )
444
508
445
509
___
446
510
@@ -452,7 +516,7 @@ A field representing searchable text.
452
516
453
517
#### Defined in
454
518
455
- [ lib/schema/definitions.ts:112 ] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/schema/definitions.ts#L112 )
519
+ [ lib/schema/definitions.ts:114 ] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/schema/definitions.ts#L114 )
456
520
457
521
## Variables
458
522
@@ -464,7 +528,7 @@ The Symbol used to access the entity ID of an [Entity](README.md#entity).
464
528
465
529
#### Defined in
466
530
467
- [ lib/entity/entity.ts:2] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/entity/entity.ts#L2 )
531
+ [ lib/entity/entity.ts:2] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/entity/entity.ts#L2 )
468
532
469
533
___
470
534
@@ -476,4 +540,4 @@ The Symbol used to access the keyname of an [Entity](README.md#entity).
476
540
477
541
#### Defined in
478
542
479
- [ lib/entity/entity.ts:5] ( https://github.com/redis/redis-om-node/blob/d8438f7 /lib/entity/entity.ts#L5 )
543
+ [ lib/entity/entity.ts:5] ( https://github.com/redis/redis-om-node/blob/1acd1cf /lib/entity/entity.ts#L5 )
0 commit comments