(t *testing.T)
| 487 | } |
| 488 | |
| 489 | func TestGraphQLId(t *testing.T) { |
| 490 | |
| 491 | q := `query test ($a: string = 1) { |
| 492 | me(func: uid($a)) { |
| 493 | name |
| 494 | gender |
| 495 | friend(first: 1) { |
| 496 | name |
| 497 | } |
| 498 | } |
| 499 | }` |
| 500 | js, err := processQueryWithVars(t, q, map[string]string{"$a": "[1, 31]"}) |
| 501 | require.NoError(t, err) |
| 502 | require.JSONEq(t, `{"data": {"me":[{"friend":[{"name":"Rick Grimes"}],"gender":"female","name":"Michonne"},{"friend":[{"name":"Glenn Rhee"}],"name":"Andrea"}]}}`, js) |
| 503 | } |
| 504 | |
| 505 | func TestDebugUid(t *testing.T) { |
| 506 |
nothing calls this directly
no test coverage detected
searching dependent graphs…