dqlx
dqlx copied to clipboard
A DGraph Query Builder
Dgraph's [expand](https://dgraph.io/docs/query-language/expand-predicates/#) function can't be surrounded with angle brackets. cc @fenos closes #17 Signed-off-by: Nikolaos Moraitis
@fenos Is there a way to `.Select()` all of the fields instead? Also, is there a way to inject `expand(_all_)` in the selection?
@fenos Since there is no godoc, it is really hard to read the library. Are there any plans for creating documentation?
Hi, thank you for your library, I was trying to make an upsert block https://dgraph.io/docs/mutations/upsert-block/#example-of-uid-function and I see in your documentation: https://fenos.github.io/dqlx/docs/mutations/set#logical-upsert the way to do it. But there is...
Hey everyone, First thank you for this amazing repo. My issue is about EdgeAS; ``` var output []map[string]interface{} _, err := r.Conn.QueryType("User"). Filter( dqlx.UID(uid), ). EdgeAs("total", "friendship", dqlx.Facets(dqlx.And{ dqlx.GtFn("requested_at", util.BeginningOfDay().Unix()),...
Unfortunately due to lack of time and passion for Dgraph i'm unable to maintain the project as i'd like to. If any of you would like to be a maintainer...
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 :...
with git main branch(8ff4e7278708424691710a87468b2c44b4d0622f) code and dgraph verion 23.1.0. Conditional Upsert not work data := []map[string]interface{}{ { "uid": "uid(v)", "email": "[email protected]", "name": "first name" }, } userByEmailQuery := dqlx.Query(dqlx.EqFn("email", "[email protected]"))....
Inserting 10,000 pieces of data in dgraph is very slow, but inserting 10,000 pieces of data at one time is very fast. Can dqlx add the function of combining query...
https://fenos.github.io/dqlx/docs/mutations/set The example has a dot to much and does not work since the type does not fit ```GO data := []map[string]interface{}{ { "uid": "uid(v)", "email": "[email protected]", "name": "first name"...