(t *testing.T)
| 85 | } |
| 86 | |
| 87 | func TestParseQueryNameQueryWithoutBrackers(t *testing.T) { |
| 88 | query := ` |
| 89 | query works { |
| 90 | q(func: has(name)) { |
| 91 | name |
| 92 | } |
| 93 | } |
| 94 | ` |
| 95 | _, err := Parse(Request{Str: query}) |
| 96 | require.NoError(t, err) |
| 97 | } |
| 98 | |
| 99 | func TestParseVarError(t *testing.T) { |
| 100 | query := ` |