Skip to content

Commit 21d8e5f

Browse files
committed
Index info has its own statement
1 parent f8a8517 commit 21d8e5f

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

Diff for: src/content/doc-surrealql/statements/define/indexes.mdx

+18-14
Original file line numberDiff line numberDiff line change
@@ -349,27 +349,31 @@ Building indexes can be lengthy and may time out before they're completed. Use t
349349
```surql
350350
-- Create an INDEX concurrently
351351
DEFINE INDEX test ON user FIELDS email CONCURRENTLY;
352+
INFO FOR INDEX test ON TABLE user;
353+
INFO FOR INDEX test ON TABLE user;
352354
```
353355

354356
```surql
355357
-- Check the indexing status
356-
INFO FOR TABLE example;
358+
INFO FOR INDEX test ON TABLE user;
357359
```
358360

359-
```surql
361+
```surql title="Possible response"
362+
-- Query
363+
360364
{
361-
events: {},
362-
fields: {},
363-
tables: {},
364-
indexes: {
365-
test: {
366-
// highlight-start
367-
building: { status: 'built' },
368-
sql: 'DEFINE INDEX example ON example FIELDS example'
369-
// highlight-end
370-
}
371-
},
372-
lives: {},
365+
building: {
366+
count: 0,
367+
status: 'initial'
368+
}
369+
}
370+
371+
-- Query
372+
373+
{
374+
building: {
375+
status: 'built'
376+
}
373377
}
374378
```
375379

0 commit comments

Comments
 (0)