dqlx
dqlx copied to clipboard
schema index not work with 23.1.0
schema := db.Schema()
schema.Type("User", func(user *dqlx.TypeBuilder) {
user.String("name").IndexTerm()
user.String("phone")
})
err = schema.Alter(ctx, dqlx.WithDropAllSchema(true))
if err != nil {
panic(err)
}
schema index not work.
get chema from https://play.dgraph.io/?local :