INDEX keyword. For enforcing uniqueness constraints, see Unique Indexes.
To create a secondary index, use the INDEX keyword:
Note: You can currently only use indexing with nodes. Indexing for vectors is not supported yet.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Indexing a field of a node as a global secondary index.
INDEX keyword. For enforcing uniqueness constraints, see Unique Indexes.
To create a secondary index, use the INDEX keyword:
N::NodeType {
INDEX field1: String,
field2: U32
}
QUERY getByIndex(index_field: String) =>
node <- N<User>({field1: index_field})
RETURN node
Was this page helpful?