1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00

Adds anchors

This commit is contained in:
Itamar Haber
2023-03-14 15:00:52 +02:00
parent d9c815f50e
commit 5c835d1a59
2 changed files with 5 additions and 11 deletions

View File

@@ -1,11 +1,4 @@
{ {
"id": "json_search", "id": "json_search",
"file": "index.js", "file": "index.js"
"highlight": [
"10",
"44-56",
"63"
],
"hide": [],
"collapse": []
} }

View File

@@ -1,8 +1,9 @@
// HIDE_START
// Step 1
import { createClient, SchemaFieldTypes } from 'redis'; import { createClient, SchemaFieldTypes } from 'redis';
const client = createClient(); const client = createClient();
await client.connect(); await client.connect();
// HIDE_END
// Create an index. // Create an index.
// https://redis.io/commands/ft.create/ // https://redis.io/commands/ft.create/