MCPcopy Create free account
hub / github.com/dgraph-io/dgraph / parseFacets

Function parseFacets

dql/parser.go:2120–2129  ·  view source on GitHub ↗
(it *lex.ItemIterator)

Source from the content-addressed store, hash-verified

2118}
2119
2120func parseFacets(it *lex.ItemIterator) (res facetRes, err error) {
2121 res, ok, err := tryParseFacetList(it)
2122 if err != nil || ok {
2123 return res, err
2124 }
2125
2126 filterTree, err := parseFilter(it)
2127 res.ft = filterTree
2128 return res, err
2129}
2130
2131type facetItem struct {
2132 name string

Callers 1

parseDirectiveFunction · 0.85

Calls 2

tryParseFacetListFunction · 0.85
parseFilterFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…