Contents

Index(_:)

Specifies the key-paths that SwiftData uses to create one or more indicies for the associated model, where each index is either binary or R-tree.

Declaration

@freestanding(declaration) macro Index<T>(_ indices: Schema.Index<T>.Types<T>...) where T : PersistentModel

See Also

Model definition