-
Notifications
You must be signed in to change notification settings - Fork 54
Closed
Description
Hello, Is there any way to create indices in the javascript schema?
This feature is documented only with decorators but I tried
module.exports = {
name: "Category",
columns: {
id: {
primary: true,
type: "int",
},
name: {
index: true,
type: "string"
}
}
};
Also tried
...
name:{
index:{
name: "INAME"
}
}
...
or with the property indices in the root schema:
...
name: "Category",
indices:[
{
name: "INAME",
columns: ["name"]
}
]
...
Is this feature supported on javascript schemas or only for typescript using decorators?
Metadata
Metadata
Assignees
Labels
No labels