redis-type-os 1.0.3
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/CHANGELOG +168 -0
- package/LICENSE +22 -0
- package/README.md +1150 -0
- package/dist/index.d.ts +1398 -0
- package/dist/index.js +2047 -0
- package/docs/.nojekyll +1 -0
- package/docs/README.md +479 -0
- package/docs/classes/AbstractSearch.md +912 -0
- package/docs/classes/ArrayHashInput.md +198 -0
- package/docs/classes/Circle.md +375 -0
- package/docs/classes/Client.md +190 -0
- package/docs/classes/Field.md +254 -0
- package/docs/classes/FieldNotInSchema.md +198 -0
- package/docs/classes/InvalidHashInput.md +213 -0
- package/docs/classes/InvalidHashValue.md +228 -0
- package/docs/classes/InvalidInput.md +207 -0
- package/docs/classes/InvalidJsonInput.md +228 -0
- package/docs/classes/InvalidJsonValue.md +228 -0
- package/docs/classes/InvalidSchema.md +197 -0
- package/docs/classes/InvalidValue.md +203 -0
- package/docs/classes/NestedHashInput.md +198 -0
- package/docs/classes/NullJsonInput.md +228 -0
- package/docs/classes/NullJsonValue.md +228 -0
- package/docs/classes/PointOutOfRange.md +203 -0
- package/docs/classes/RawSearch.md +1063 -0
- package/docs/classes/RedisOmError.md +207 -0
- package/docs/classes/Repository.md +425 -0
- package/docs/classes/Schema.md +242 -0
- package/docs/classes/Search.md +1199 -0
- package/docs/classes/SearchError.md +201 -0
- package/docs/classes/SemanticSearchError.md +197 -0
- package/docs/classes/Where.md +43 -0
- package/docs/classes/WhereField.md +915 -0
- package/logo.svg +1 -0
- package/package.json +66 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
[redis-om](../README.md) / Client
|
|
2
|
+
|
|
3
|
+
# Class: Client
|
|
4
|
+
|
|
5
|
+
A Client is the starting point for working with Redis OM. Clients manage the
|
|
6
|
+
connection to Redis and provide limited functionality for executing Redis commands.
|
|
7
|
+
Create a client and open it before you use it:
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
const client = new Client()
|
|
11
|
+
await client.open()
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
A Client is primarily used by a [Repository](Repository.md) which requires a client in
|
|
15
|
+
its constructor.
|
|
16
|
+
|
|
17
|
+
**`Deprecated`**
|
|
18
|
+
|
|
19
|
+
Just used Node Redis client directly and pass it to the Repository.
|
|
20
|
+
|
|
21
|
+
## Table of contents
|
|
22
|
+
|
|
23
|
+
### Constructors
|
|
24
|
+
|
|
25
|
+
- [constructor](Client.md#constructor)
|
|
26
|
+
|
|
27
|
+
### Accessors
|
|
28
|
+
|
|
29
|
+
- [redis](Client.md#redis)
|
|
30
|
+
|
|
31
|
+
### Methods
|
|
32
|
+
|
|
33
|
+
- [close](Client.md#close)
|
|
34
|
+
- [fetchRepository](Client.md#fetchrepository)
|
|
35
|
+
- [isOpen](Client.md#isopen)
|
|
36
|
+
- [open](Client.md#open)
|
|
37
|
+
- [use](Client.md#use)
|
|
38
|
+
- [useNoClose](Client.md#usenoclose)
|
|
39
|
+
|
|
40
|
+
## Constructors
|
|
41
|
+
|
|
42
|
+
### constructor
|
|
43
|
+
|
|
44
|
+
• **new Client**()
|
|
45
|
+
|
|
46
|
+
## Accessors
|
|
47
|
+
|
|
48
|
+
### redis
|
|
49
|
+
|
|
50
|
+
• `get` **redis**(): `undefined` \| [`RedisConnection`](../README.md#redisconnection)
|
|
51
|
+
|
|
52
|
+
Returns the underlying Node Redis connection being used.
|
|
53
|
+
|
|
54
|
+
#### Returns
|
|
55
|
+
|
|
56
|
+
`undefined` \| [`RedisConnection`](../README.md#redisconnection)
|
|
57
|
+
|
|
58
|
+
#### Defined in
|
|
59
|
+
|
|
60
|
+
[lib/client/client.ts:70](https://github.com/redis/redis-om-node/blob/d8438f7/lib/client/client.ts#L70)
|
|
61
|
+
|
|
62
|
+
## Methods
|
|
63
|
+
|
|
64
|
+
### close
|
|
65
|
+
|
|
66
|
+
▸ **close**(): `Promise`<`void`\>
|
|
67
|
+
|
|
68
|
+
Close the connection to Redis.
|
|
69
|
+
|
|
70
|
+
#### Returns
|
|
71
|
+
|
|
72
|
+
`Promise`<`void`\>
|
|
73
|
+
|
|
74
|
+
#### Defined in
|
|
75
|
+
|
|
76
|
+
[lib/client/client.ts:127](https://github.com/redis/redis-om-node/blob/d8438f7/lib/client/client.ts#L127)
|
|
77
|
+
|
|
78
|
+
___
|
|
79
|
+
|
|
80
|
+
### fetchRepository
|
|
81
|
+
|
|
82
|
+
▸ **fetchRepository**(`schema`): [`Repository`](Repository.md)
|
|
83
|
+
|
|
84
|
+
Creates a repository for the given schema.
|
|
85
|
+
|
|
86
|
+
#### Parameters
|
|
87
|
+
|
|
88
|
+
| Name | Type | Description |
|
|
89
|
+
| :------ | :------ | :------ |
|
|
90
|
+
| `schema` | [`Schema`](Schema.md) | The schema. |
|
|
91
|
+
|
|
92
|
+
#### Returns
|
|
93
|
+
|
|
94
|
+
[`Repository`](Repository.md)
|
|
95
|
+
|
|
96
|
+
A repository for the provided schema.
|
|
97
|
+
|
|
98
|
+
#### Defined in
|
|
99
|
+
|
|
100
|
+
[lib/client/client.ts:119](https://github.com/redis/redis-om-node/blob/d8438f7/lib/client/client.ts#L119)
|
|
101
|
+
|
|
102
|
+
___
|
|
103
|
+
|
|
104
|
+
### isOpen
|
|
105
|
+
|
|
106
|
+
▸ **isOpen**(): `boolean`
|
|
107
|
+
|
|
108
|
+
#### Returns
|
|
109
|
+
|
|
110
|
+
`boolean`
|
|
111
|
+
|
|
112
|
+
Whether a connection is already open.
|
|
113
|
+
|
|
114
|
+
#### Defined in
|
|
115
|
+
|
|
116
|
+
[lib/client/client.ts:213](https://github.com/redis/redis-om-node/blob/d8438f7/lib/client/client.ts#L213)
|
|
117
|
+
|
|
118
|
+
___
|
|
119
|
+
|
|
120
|
+
### open
|
|
121
|
+
|
|
122
|
+
▸ **open**(`url?`): `Promise`<[`Client`](Client.md)\>
|
|
123
|
+
|
|
124
|
+
Open a connection to Redis at the provided URL.
|
|
125
|
+
|
|
126
|
+
#### Parameters
|
|
127
|
+
|
|
128
|
+
| Name | Type | Default value | Description |
|
|
129
|
+
| :------ | :------ | :------ | :------ |
|
|
130
|
+
| `url` | `string` | `'redis://localhost:6379'` | A URL to Redis as defined with the [IANA](https://www.iana.org/assignments/uri-schemes/prov/redis). |
|
|
131
|
+
|
|
132
|
+
#### Returns
|
|
133
|
+
|
|
134
|
+
`Promise`<[`Client`](Client.md)\>
|
|
135
|
+
|
|
136
|
+
This [Client](Client.md) instance.
|
|
137
|
+
|
|
138
|
+
#### Defined in
|
|
139
|
+
|
|
140
|
+
[lib/client/client.ts:104](https://github.com/redis/redis-om-node/blob/d8438f7/lib/client/client.ts#L104)
|
|
141
|
+
|
|
142
|
+
___
|
|
143
|
+
|
|
144
|
+
### use
|
|
145
|
+
|
|
146
|
+
▸ **use**(`connection`): `Promise`<[`Client`](Client.md)\>
|
|
147
|
+
|
|
148
|
+
Attaches an existing Node Redis connection to this Redis OM client. Closes
|
|
149
|
+
any existing connection.
|
|
150
|
+
|
|
151
|
+
#### Parameters
|
|
152
|
+
|
|
153
|
+
| Name | Type | Description |
|
|
154
|
+
| :------ | :------ | :------ |
|
|
155
|
+
| `connection` | [`RedisConnection`](../README.md#redisconnection) | An existing Node Redis client. |
|
|
156
|
+
|
|
157
|
+
#### Returns
|
|
158
|
+
|
|
159
|
+
`Promise`<[`Client`](Client.md)\>
|
|
160
|
+
|
|
161
|
+
This [Client](Client.md) instance.
|
|
162
|
+
|
|
163
|
+
#### Defined in
|
|
164
|
+
|
|
165
|
+
[lib/client/client.ts:81](https://github.com/redis/redis-om-node/blob/d8438f7/lib/client/client.ts#L81)
|
|
166
|
+
|
|
167
|
+
___
|
|
168
|
+
|
|
169
|
+
### useNoClose
|
|
170
|
+
|
|
171
|
+
▸ **useNoClose**(`connection`): [`Client`](Client.md)
|
|
172
|
+
|
|
173
|
+
Attaches an existing Node Redis connection to this Redis OM client. Does
|
|
174
|
+
not close any existing connection.
|
|
175
|
+
|
|
176
|
+
#### Parameters
|
|
177
|
+
|
|
178
|
+
| Name | Type | Description |
|
|
179
|
+
| :------ | :------ | :------ |
|
|
180
|
+
| `connection` | [`RedisConnection`](../README.md#redisconnection) | An existing Node Redis client. |
|
|
181
|
+
|
|
182
|
+
#### Returns
|
|
183
|
+
|
|
184
|
+
[`Client`](Client.md)
|
|
185
|
+
|
|
186
|
+
This [Client](Client.md) instance.
|
|
187
|
+
|
|
188
|
+
#### Defined in
|
|
189
|
+
|
|
190
|
+
[lib/client/client.ts:93](https://github.com/redis/redis-om-node/blob/d8438f7/lib/client/client.ts#L93)
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
[redis-om](../README.md) / Field
|
|
2
|
+
|
|
3
|
+
# Class: Field
|
|
4
|
+
|
|
5
|
+
Describes a field in a [Schema](Schema.md).
|
|
6
|
+
|
|
7
|
+
## Table of contents
|
|
8
|
+
|
|
9
|
+
### Constructors
|
|
10
|
+
|
|
11
|
+
- [constructor](Field.md#constructor)
|
|
12
|
+
|
|
13
|
+
### Accessors
|
|
14
|
+
|
|
15
|
+
- [caseSensitive](Field.md#casesensitive)
|
|
16
|
+
- [hashField](Field.md#hashfield)
|
|
17
|
+
- [indexed](Field.md#indexed)
|
|
18
|
+
- [isArray](Field.md#isarray)
|
|
19
|
+
- [jsonPath](Field.md#jsonpath)
|
|
20
|
+
- [matcher](Field.md#matcher)
|
|
21
|
+
- [name](Field.md#name)
|
|
22
|
+
- [normalized](Field.md#normalized)
|
|
23
|
+
- [separator](Field.md#separator)
|
|
24
|
+
- [sortable](Field.md#sortable)
|
|
25
|
+
- [stemming](Field.md#stemming)
|
|
26
|
+
- [type](Field.md#type)
|
|
27
|
+
- [weight](Field.md#weight)
|
|
28
|
+
|
|
29
|
+
## Constructors
|
|
30
|
+
|
|
31
|
+
### constructor
|
|
32
|
+
|
|
33
|
+
• **new Field**(`name`, `definition`)
|
|
34
|
+
|
|
35
|
+
Creates a Field.
|
|
36
|
+
|
|
37
|
+
#### Parameters
|
|
38
|
+
|
|
39
|
+
| Name | Type | Description |
|
|
40
|
+
| :------ | :------ | :------ |
|
|
41
|
+
| `name` | `string` | The name of the Field. |
|
|
42
|
+
| `definition` | [`FieldDefinition`](../README.md#fielddefinition) | The underlying [FieldDefinition](../README.md#fielddefinition). |
|
|
43
|
+
|
|
44
|
+
#### Defined in
|
|
45
|
+
|
|
46
|
+
[lib/schema/field.ts:17](https://github.com/redis/redis-om-node/blob/d8438f7/lib/schema/field.ts#L17)
|
|
47
|
+
|
|
48
|
+
## Accessors
|
|
49
|
+
|
|
50
|
+
### caseSensitive
|
|
51
|
+
|
|
52
|
+
• `get` **caseSensitive**(): `boolean`
|
|
53
|
+
|
|
54
|
+
The case-sensitivity of the field.
|
|
55
|
+
|
|
56
|
+
#### Returns
|
|
57
|
+
|
|
58
|
+
`boolean`
|
|
59
|
+
|
|
60
|
+
#### Defined in
|
|
61
|
+
|
|
62
|
+
[lib/schema/field.ts:55](https://github.com/redis/redis-om-node/blob/d8438f7/lib/schema/field.ts#L55)
|
|
63
|
+
|
|
64
|
+
___
|
|
65
|
+
|
|
66
|
+
### hashField
|
|
67
|
+
|
|
68
|
+
• `get` **hashField**(): `string`
|
|
69
|
+
|
|
70
|
+
The field name used to store this [Field](Field.md) in a Hash.
|
|
71
|
+
|
|
72
|
+
#### Returns
|
|
73
|
+
|
|
74
|
+
`string`
|
|
75
|
+
|
|
76
|
+
#### Defined in
|
|
77
|
+
|
|
78
|
+
[lib/schema/field.ts:33](https://github.com/redis/redis-om-node/blob/d8438f7/lib/schema/field.ts#L33)
|
|
79
|
+
|
|
80
|
+
___
|
|
81
|
+
|
|
82
|
+
### indexed
|
|
83
|
+
|
|
84
|
+
• `get` **indexed**(): `boolean`
|
|
85
|
+
|
|
86
|
+
Indicates the field as being indexed—and thus queryable—by RediSearch.
|
|
87
|
+
|
|
88
|
+
#### Returns
|
|
89
|
+
|
|
90
|
+
`boolean`
|
|
91
|
+
|
|
92
|
+
#### Defined in
|
|
93
|
+
|
|
94
|
+
[lib/schema/field.ts:60](https://github.com/redis/redis-om-node/blob/d8438f7/lib/schema/field.ts#L60)
|
|
95
|
+
|
|
96
|
+
___
|
|
97
|
+
|
|
98
|
+
### isArray
|
|
99
|
+
|
|
100
|
+
• `get` **isArray**(): `boolean`
|
|
101
|
+
|
|
102
|
+
Is this type an array or not.
|
|
103
|
+
|
|
104
|
+
#### Returns
|
|
105
|
+
|
|
106
|
+
`boolean`
|
|
107
|
+
|
|
108
|
+
#### Defined in
|
|
109
|
+
|
|
110
|
+
[lib/schema/field.ts:85](https://github.com/redis/redis-om-node/blob/d8438f7/lib/schema/field.ts#L85)
|
|
111
|
+
|
|
112
|
+
___
|
|
113
|
+
|
|
114
|
+
### jsonPath
|
|
115
|
+
|
|
116
|
+
• `get` **jsonPath**(): `string`
|
|
117
|
+
|
|
118
|
+
The JSONPath used to store this [Field](Field.md) in a JSON document.
|
|
119
|
+
|
|
120
|
+
#### Returns
|
|
121
|
+
|
|
122
|
+
`string`
|
|
123
|
+
|
|
124
|
+
#### Defined in
|
|
125
|
+
|
|
126
|
+
[lib/schema/field.ts:38](https://github.com/redis/redis-om-node/blob/d8438f7/lib/schema/field.ts#L38)
|
|
127
|
+
|
|
128
|
+
___
|
|
129
|
+
|
|
130
|
+
### matcher
|
|
131
|
+
|
|
132
|
+
• `get` **matcher**(): ``null`` \| `string`
|
|
133
|
+
|
|
134
|
+
The phonetic matcher for the field.
|
|
135
|
+
|
|
136
|
+
#### Returns
|
|
137
|
+
|
|
138
|
+
``null`` \| `string`
|
|
139
|
+
|
|
140
|
+
#### Defined in
|
|
141
|
+
|
|
142
|
+
[lib/schema/field.ts:80](https://github.com/redis/redis-om-node/blob/d8438f7/lib/schema/field.ts#L80)
|
|
143
|
+
|
|
144
|
+
___
|
|
145
|
+
|
|
146
|
+
### name
|
|
147
|
+
|
|
148
|
+
• `get` **name**(): `string`
|
|
149
|
+
|
|
150
|
+
The name of the field.
|
|
151
|
+
|
|
152
|
+
#### Returns
|
|
153
|
+
|
|
154
|
+
`string`
|
|
155
|
+
|
|
156
|
+
#### Defined in
|
|
157
|
+
|
|
158
|
+
[lib/schema/field.ts:23](https://github.com/redis/redis-om-node/blob/d8438f7/lib/schema/field.ts#L23)
|
|
159
|
+
|
|
160
|
+
___
|
|
161
|
+
|
|
162
|
+
### normalized
|
|
163
|
+
|
|
164
|
+
• `get` **normalized**(): `boolean`
|
|
165
|
+
|
|
166
|
+
Indicates that the field is normalized. Ignored if sortable is false.
|
|
167
|
+
|
|
168
|
+
#### Returns
|
|
169
|
+
|
|
170
|
+
`boolean`
|
|
171
|
+
|
|
172
|
+
#### Defined in
|
|
173
|
+
|
|
174
|
+
[lib/schema/field.ts:70](https://github.com/redis/redis-om-node/blob/d8438f7/lib/schema/field.ts#L70)
|
|
175
|
+
|
|
176
|
+
___
|
|
177
|
+
|
|
178
|
+
### separator
|
|
179
|
+
|
|
180
|
+
• `get` **separator**(): `string`
|
|
181
|
+
|
|
182
|
+
The separator for string[] fields when stored in Hashes.
|
|
183
|
+
|
|
184
|
+
#### Returns
|
|
185
|
+
|
|
186
|
+
`string`
|
|
187
|
+
|
|
188
|
+
#### Defined in
|
|
189
|
+
|
|
190
|
+
[lib/schema/field.ts:45](https://github.com/redis/redis-om-node/blob/d8438f7/lib/schema/field.ts#L45)
|
|
191
|
+
|
|
192
|
+
___
|
|
193
|
+
|
|
194
|
+
### sortable
|
|
195
|
+
|
|
196
|
+
• `get` **sortable**(): `boolean`
|
|
197
|
+
|
|
198
|
+
Indicates that the field as sortable.
|
|
199
|
+
|
|
200
|
+
#### Returns
|
|
201
|
+
|
|
202
|
+
`boolean`
|
|
203
|
+
|
|
204
|
+
#### Defined in
|
|
205
|
+
|
|
206
|
+
[lib/schema/field.ts:50](https://github.com/redis/redis-om-node/blob/d8438f7/lib/schema/field.ts#L50)
|
|
207
|
+
|
|
208
|
+
___
|
|
209
|
+
|
|
210
|
+
### stemming
|
|
211
|
+
|
|
212
|
+
• `get` **stemming**(): `boolean`
|
|
213
|
+
|
|
214
|
+
Indicates that the field as indexed with stemming support.
|
|
215
|
+
|
|
216
|
+
#### Returns
|
|
217
|
+
|
|
218
|
+
`boolean`
|
|
219
|
+
|
|
220
|
+
#### Defined in
|
|
221
|
+
|
|
222
|
+
[lib/schema/field.ts:65](https://github.com/redis/redis-om-node/blob/d8438f7/lib/schema/field.ts#L65)
|
|
223
|
+
|
|
224
|
+
___
|
|
225
|
+
|
|
226
|
+
### type
|
|
227
|
+
|
|
228
|
+
• `get` **type**(): [`FieldType`](../README.md#fieldtype)
|
|
229
|
+
|
|
230
|
+
The [type](../README.md#fieldtype) of the field.
|
|
231
|
+
|
|
232
|
+
#### Returns
|
|
233
|
+
|
|
234
|
+
[`FieldType`](../README.md#fieldtype)
|
|
235
|
+
|
|
236
|
+
#### Defined in
|
|
237
|
+
|
|
238
|
+
[lib/schema/field.ts:28](https://github.com/redis/redis-om-node/blob/d8438f7/lib/schema/field.ts#L28)
|
|
239
|
+
|
|
240
|
+
___
|
|
241
|
+
|
|
242
|
+
### weight
|
|
243
|
+
|
|
244
|
+
• `get` **weight**(): ``null`` \| `number`
|
|
245
|
+
|
|
246
|
+
The search weight of the field.
|
|
247
|
+
|
|
248
|
+
#### Returns
|
|
249
|
+
|
|
250
|
+
``null`` \| `number`
|
|
251
|
+
|
|
252
|
+
#### Defined in
|
|
253
|
+
|
|
254
|
+
[lib/schema/field.ts:75](https://github.com/redis/redis-om-node/blob/d8438f7/lib/schema/field.ts#L75)
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
[redis-om](../README.md) / FieldNotInSchema
|
|
2
|
+
|
|
3
|
+
# Class: FieldNotInSchema
|
|
4
|
+
|
|
5
|
+
## Hierarchy
|
|
6
|
+
|
|
7
|
+
- [`SearchError`](SearchError.md)
|
|
8
|
+
|
|
9
|
+
↳ **`FieldNotInSchema`**
|
|
10
|
+
|
|
11
|
+
## Table of contents
|
|
12
|
+
|
|
13
|
+
### Constructors
|
|
14
|
+
|
|
15
|
+
- [constructor](FieldNotInSchema.md#constructor)
|
|
16
|
+
|
|
17
|
+
### Properties
|
|
18
|
+
|
|
19
|
+
- [cause](FieldNotInSchema.md#cause)
|
|
20
|
+
- [message](FieldNotInSchema.md#message)
|
|
21
|
+
- [name](FieldNotInSchema.md#name)
|
|
22
|
+
- [stack](FieldNotInSchema.md#stack)
|
|
23
|
+
- [prepareStackTrace](FieldNotInSchema.md#preparestacktrace)
|
|
24
|
+
- [stackTraceLimit](FieldNotInSchema.md#stacktracelimit)
|
|
25
|
+
|
|
26
|
+
### Accessors
|
|
27
|
+
|
|
28
|
+
- [field](FieldNotInSchema.md#field)
|
|
29
|
+
|
|
30
|
+
### Methods
|
|
31
|
+
|
|
32
|
+
- [captureStackTrace](FieldNotInSchema.md#capturestacktrace)
|
|
33
|
+
|
|
34
|
+
## Constructors
|
|
35
|
+
|
|
36
|
+
### constructor
|
|
37
|
+
|
|
38
|
+
• **new FieldNotInSchema**(`fieldName`)
|
|
39
|
+
|
|
40
|
+
#### Parameters
|
|
41
|
+
|
|
42
|
+
| Name | Type |
|
|
43
|
+
| :------ | :------ |
|
|
44
|
+
| `fieldName` | `string` |
|
|
45
|
+
|
|
46
|
+
#### Overrides
|
|
47
|
+
|
|
48
|
+
[SearchError](SearchError.md).[constructor](SearchError.md#constructor)
|
|
49
|
+
|
|
50
|
+
#### Defined in
|
|
51
|
+
|
|
52
|
+
[lib/error/search-error.ts:11](https://github.com/redis/redis-om-node/blob/d8438f7/lib/error/search-error.ts#L11)
|
|
53
|
+
|
|
54
|
+
## Properties
|
|
55
|
+
|
|
56
|
+
### cause
|
|
57
|
+
|
|
58
|
+
• `Optional` **cause**: `unknown`
|
|
59
|
+
|
|
60
|
+
#### Inherited from
|
|
61
|
+
|
|
62
|
+
[SearchError](SearchError.md).[cause](SearchError.md#cause)
|
|
63
|
+
|
|
64
|
+
#### Defined in
|
|
65
|
+
|
|
66
|
+
node_modules/typescript/lib/lib.es2022.error.d.ts:26
|
|
67
|
+
|
|
68
|
+
___
|
|
69
|
+
|
|
70
|
+
### message
|
|
71
|
+
|
|
72
|
+
• **message**: `string`
|
|
73
|
+
|
|
74
|
+
#### Inherited from
|
|
75
|
+
|
|
76
|
+
[SearchError](SearchError.md).[message](SearchError.md#message)
|
|
77
|
+
|
|
78
|
+
#### Defined in
|
|
79
|
+
|
|
80
|
+
node_modules/typescript/lib/lib.es5.d.ts:1054
|
|
81
|
+
|
|
82
|
+
___
|
|
83
|
+
|
|
84
|
+
### name
|
|
85
|
+
|
|
86
|
+
• **name**: `string`
|
|
87
|
+
|
|
88
|
+
#### Inherited from
|
|
89
|
+
|
|
90
|
+
[SearchError](SearchError.md).[name](SearchError.md#name)
|
|
91
|
+
|
|
92
|
+
#### Defined in
|
|
93
|
+
|
|
94
|
+
node_modules/typescript/lib/lib.es5.d.ts:1053
|
|
95
|
+
|
|
96
|
+
___
|
|
97
|
+
|
|
98
|
+
### stack
|
|
99
|
+
|
|
100
|
+
• `Optional` **stack**: `string`
|
|
101
|
+
|
|
102
|
+
#### Inherited from
|
|
103
|
+
|
|
104
|
+
[SearchError](SearchError.md).[stack](SearchError.md#stack)
|
|
105
|
+
|
|
106
|
+
#### Defined in
|
|
107
|
+
|
|
108
|
+
node_modules/typescript/lib/lib.es5.d.ts:1055
|
|
109
|
+
|
|
110
|
+
___
|
|
111
|
+
|
|
112
|
+
### prepareStackTrace
|
|
113
|
+
|
|
114
|
+
▪ `Static` `Optional` **prepareStackTrace**: (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any`
|
|
115
|
+
|
|
116
|
+
#### Type declaration
|
|
117
|
+
|
|
118
|
+
▸ (`err`, `stackTraces`): `any`
|
|
119
|
+
|
|
120
|
+
Optional override for formatting stack traces
|
|
121
|
+
|
|
122
|
+
**`See`**
|
|
123
|
+
|
|
124
|
+
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
|
|
125
|
+
|
|
126
|
+
##### Parameters
|
|
127
|
+
|
|
128
|
+
| Name | Type |
|
|
129
|
+
| :------ | :------ |
|
|
130
|
+
| `err` | `Error` |
|
|
131
|
+
| `stackTraces` | `CallSite`[] |
|
|
132
|
+
|
|
133
|
+
##### Returns
|
|
134
|
+
|
|
135
|
+
`any`
|
|
136
|
+
|
|
137
|
+
#### Inherited from
|
|
138
|
+
|
|
139
|
+
[SearchError](SearchError.md).[prepareStackTrace](SearchError.md#preparestacktrace)
|
|
140
|
+
|
|
141
|
+
#### Defined in
|
|
142
|
+
|
|
143
|
+
node_modules/@types/node/globals.d.ts:11
|
|
144
|
+
|
|
145
|
+
___
|
|
146
|
+
|
|
147
|
+
### stackTraceLimit
|
|
148
|
+
|
|
149
|
+
▪ `Static` **stackTraceLimit**: `number`
|
|
150
|
+
|
|
151
|
+
#### Inherited from
|
|
152
|
+
|
|
153
|
+
[SearchError](SearchError.md).[stackTraceLimit](SearchError.md#stacktracelimit)
|
|
154
|
+
|
|
155
|
+
#### Defined in
|
|
156
|
+
|
|
157
|
+
node_modules/@types/node/globals.d.ts:13
|
|
158
|
+
|
|
159
|
+
## Accessors
|
|
160
|
+
|
|
161
|
+
### field
|
|
162
|
+
|
|
163
|
+
• `get` **field**(): `string`
|
|
164
|
+
|
|
165
|
+
#### Returns
|
|
166
|
+
|
|
167
|
+
`string`
|
|
168
|
+
|
|
169
|
+
#### Defined in
|
|
170
|
+
|
|
171
|
+
[lib/error/search-error.ts:16](https://github.com/redis/redis-om-node/blob/d8438f7/lib/error/search-error.ts#L16)
|
|
172
|
+
|
|
173
|
+
## Methods
|
|
174
|
+
|
|
175
|
+
### captureStackTrace
|
|
176
|
+
|
|
177
|
+
▸ `Static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
|
|
178
|
+
|
|
179
|
+
Create .stack property on a target object
|
|
180
|
+
|
|
181
|
+
#### Parameters
|
|
182
|
+
|
|
183
|
+
| Name | Type |
|
|
184
|
+
| :------ | :------ |
|
|
185
|
+
| `targetObject` | `object` |
|
|
186
|
+
| `constructorOpt?` | `Function` |
|
|
187
|
+
|
|
188
|
+
#### Returns
|
|
189
|
+
|
|
190
|
+
`void`
|
|
191
|
+
|
|
192
|
+
#### Inherited from
|
|
193
|
+
|
|
194
|
+
[SearchError](SearchError.md).[captureStackTrace](SearchError.md#capturestacktrace)
|
|
195
|
+
|
|
196
|
+
#### Defined in
|
|
197
|
+
|
|
198
|
+
node_modules/@types/node/globals.d.ts:4
|