Documentation
¶
Index ¶
- Constants
- func FormatObjQuery(qf QueryFunc, extraFields string) string
- func FormatObjsQuery(typeName string, qf QueryFunc, paginationAndSorting string, extraFields string) string
- type QueryFunc
- func And(qfs ...QueryFunc) QueryFunc
- func BuildAllOfTermsQuery(attr string, terms string) QueryFunc
- func BuildAllOfTextQuery(attr, text string) QueryFunc
- func BuildAnyOfTermsQuery(attr string, terms string) QueryFunc
- func BuildAnyOfTextQuery(attr, text string) QueryFunc
- func BuildEqQuery(key string, value any) QueryFunc
- func BuildGeQuery(attr, value string) QueryFunc
- func BuildGtQuery(attr, value string) QueryFunc
- func BuildLeQuery(attr, value string) QueryFunc
- func BuildLtQuery(attr, value string) QueryFunc
- func BuildRegExpQuery(attr, pattern string) QueryFunc
- func BuildSimilarToQuery(indexAttr string, topK int64, vec []float32) QueryFunc
- func BuildUidQuery(gid uint64) QueryFunc
- func Not(qf QueryFunc) QueryFunc
- func Or(qfs ...QueryFunc) QueryFunc
- type SchemaField
- type SchemaResponse
- type SchemaType
Constants ¶
View Source
const ( ObjQuery = `` /* 200-byte string literal not displayed */ ObjsQuery = `` /* 221-byte string literal not displayed */ ReverseEdgeQuery = ` %s: ~%s { gid: uid expand(_all_) dgraph.type } ` SchemaQuery = ` schema{} ` FuncUid = `uid(%d)` FuncEq = `eq(%s, %s)` FuncSimilarTo = `similar_to(%s, %d, "[%s]")` FuncAllOfTerms = `allofterms(%s, "%s")` FuncAnyOfTerms = `anyofterms(%s, "%s")` FuncAllOfText = `alloftext(%s, "%s")` FuncAnyOfText = `anyoftext(%s, "%s")` FuncRegExp = `regexp(%s, /%s/)` FuncLe = `le(%s, %s)` FuncGe = `ge(%s, %s)` FuncGt = `gt(%s, %s)` FuncLt = `lt(%s, %s)` )
Variables ¶
This section is empty.
Functions ¶
func FormatObjQuery ¶
Types ¶
type QueryFunc ¶
type QueryFunc func() string
func BuildAllOfTermsQuery ¶
func BuildAllOfTextQuery ¶
func BuildAnyOfTermsQuery ¶
func BuildAnyOfTextQuery ¶
func BuildEqQuery ¶
func BuildGeQuery ¶
func BuildGtQuery ¶
func BuildLeQuery ¶
func BuildLtQuery ¶
func BuildRegExpQuery ¶
func BuildSimilarToQuery ¶
func BuildUidQuery ¶
type SchemaField ¶
type SchemaField struct {
Name string `json:"name"`
}
type SchemaResponse ¶
type SchemaResponse struct {
Types []SchemaType `json:"types,omitempty"`
}
type SchemaType ¶
type SchemaType struct {
Name string `json:"name,omitempty"`
Fields []SchemaField `json:"fields,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.