MCPcopy
hub / github.com/dgraph-io/dgraph / TestParseQueryNamedQuery

Function TestParseQueryNamedQuery

dql/parser_test.go:75–85  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

73}
74
75func TestParseQueryNamedQuery(t *testing.T) {
76 query := `
77query works() {
78 q(func: has(name)) {
79 name
80 }
81}
82`
83 _, err := Parse(Request{Str: query})
84 require.NoError(t, err)
85}
86
87func TestParseQueryNameQueryWithoutBrackers(t *testing.T) {
88 query := `

Callers

nothing calls this directly

Calls 1

ParseFunction · 0.70

Tested by

no test coverage detected