Alias allows to alias a field.
AllOfTermsFn represents the allofterms expression, Expression: allofterms(predicate, value).
AllOfTextFn represents the match expression, Expression: alloftext(predicate, value).
AnyOfTermsFn represents the anyofterms expression, Expression: anyofterms(predicate, value).
AnyOfTextFn represents the anyoftext expression, Expression: anyoftext(predicate, value).
As makes a field a variable Example: dqlx.Query(...).Select(dqlx.As("C", "a")).
Avg represent the 'avg' expression Expression: avg(val(predicate)).
Between represents the between expression, Expression: between(predicate, from, to).
Condition returns a condition statement.
Connect connects to a DGraph Cluster.
Count represent the 'count' expression Expression: count(predicate).
EdgePath returns the abstract representation of an edge Example: dqlx.EdgePath("field1", "field2") Returns: "field1->field2".
EqFn represents the eq expression, Expression: eq(predicate, value).
EscapePredicate safely escape a predicate Example: dqlx.EscapePredicate("predicate").
ExactFn represents the exact expression, Expression: exact(predicate, value).
Expr returns a RawExpression.
Facets returns the expression for representing facets.
Fields alias of Select @Deprecated use Select() instead.
FromClient creates a DB instance from a raw dgraph client.
FullTextFn represents the term expression, Expression: fulltext(predicate, value).
GeFn represents the ge expression, Expression: ge(predicate, value).
GenerateTypes given a schema it generates Go structs definitions.
GroupBy returns an expression for grouping.
GtFn represents the gt expression, Expression: gt(predicate, value).
Has alias of HasFn, Expression: has(predicate).
HasFn represents the has expression, Expression: has(predicate).
IsEmptyQuery determine if a given query is an empty generated query.
LeFn represents the le expression, Expression: le(predicate, value).
LtFn represents the lt expression, Expression: lt(predicate, value).
MatchFn represents the match expression, Expression: match(predicate, value).
Max represent the 'max' expression Expression: max(val(predicate)).
Min represent the 'min' expression Expression: min(val(predicate)).
Minify minifies a dql query.
Mutation creates a new MutationBuilder.
NewDGoExecutor creates a new OperationExecutor.
NewSchema creates a new SchemaBuilder.
NewSchemaExecutor creates a new schema executor.
NewTypeBuilder creates a new TypeBuilder.
OrderAsc returns an orderasc expression.
OrderDesc returns an orderdesc expression.
P represent a predicate expression Expression: <predicate>.
ParseEdge parses the abstract representation of an edge Example: dqlx.ParseEdge("field1->field2") Returns: []string{"field1", "field2"}.
Predicate returns an escaped predicate.
QueriesToDQL returns the DQL statement for 1 or more queries Example: dqlx.QueriesToDQL(query1,query2,query3).
Query initialises the query builder with the provided root filter example: dqlx.Query(dqlx.EqFn(..,..)).
QueryEdge initialise a query builder with a specific name for the edge.
QueryType alias to initialise a query with the root function type() Example: dqlx.QueryType("User") Equivalent of: dqlx.Query(dqlx.TypeFn("User")).
RegexpFn represents the regexp expression, Expression: regexp(predicate, /pattern/).
Select adds nodeAttributes to selection set.
Sum represent the 'sum' expression Expression: sum(val(predicate)).
TermFn represents the term expression, Expression: term(predicate, value).
Type alias of TypeFn, Expression: type(predicate).
TypeFn represents the type expression, Expression: type(predicate).
UID returns uid expression Expression: uid(predicate).
UIDFn returns uid expression Expression: uid(predicate).
UIDInFn represents the uid_in expression, Expression: uid_in(predicate, value).
Val returns val expression Expression: val(predicate).
Variable initialise a variable query builder Example: dqlx.Variable(dqlx.EqFn(..,..)).
WithBestEffort sets the best effort flag for the current execution.
WithClient configures a client for the current execution.
No description provided by the author
WithReadOnly marks the execution as a read-only operation you can use this only on queries.
WithRunInBackground instructs Dgraph to run indexes in the background.
WithTnx configures a transaction to be used for the current execution.
WithTypePrefix option modifier to prevent fields to be prefixed.