dqlx icon indicating copy to clipboard operation
dqlx copied to clipboard

schema index not work with 23.1.0

Open cxcel opened this issue 2 years ago • 0 comments

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 : : string . : string .

cxcel avatar Aug 31 '23 01:08 cxcel