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

Function TestNestedExpandAll

query/query4_test.go:456–488  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

454}
455
456func TestNestedExpandAll(t *testing.T) {
457 query := `{
458 q(func: has(node)) {
459 uid
460 expand(_all_) {
461 uid
462 node {
463 uid
464 expand(_all_)
465 }
466 }
467 }
468 }`
469 js := processQueryNoErr(t, query)
470 require.JSONEq(t, `{"data": {
471 "q": [
472 {
473 "uid": "0x2b5c",
474 "name": "expand",
475 "node": [
476 {
477 "uid": "0x2b5c",
478 "node": [
479 {
480 "uid": "0x2b5c",
481 "name": "expand"
482 }
483 ]
484 }
485 ]
486 }
487 ]}}`, js)
488}
489
490func TestNoResultsFilter(t *testing.T) {
491 query := `{

Callers

nothing calls this directly

Calls 1

processQueryNoErrFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…