1
0
mirror of https://github.com/redis/node-redis.git synced 2025-07-31 05:44:24 +03:00

Remove redundant UNF sub-option in JSON example (#2418)

UNF option is not required with JSON and makes the 
example harder to read and understand.
This commit is contained in:
Igor Malinovskiy
2023-02-21 16:45:48 +01:00
committed by GitHub
parent 9ffae592f1
commit 1be84228b5

View File

@ -15,7 +15,7 @@ try {
await client.ft.create('idx:users', {
'$.name': {
type: SchemaFieldTypes.TEXT,
SORTABLE: 'UNF'
SORTABLE: true
},
'$.age': {
type: SchemaFieldTypes.NUMERIC,