Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
jairad26 committed Jan 10, 2025
1 parent 68932c9 commit 95d75a9
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,6 @@ func TestCreateApi(t *testing.T) {
require.NoError(t, err)
require.JSONEq(t, `{"me":[{"uid":"0x2","User.name":"B","User.age":20,"User.clerk_id":"123"}]}`,
string(resp.GetJson()))

schemaQuery := `schema{}`
resp, err = db1.Query(ctx, schemaQuery)
require.NoError(t, err)

require.JSONEq(t,
`{"types": [{"name": "User","fields": [{"name": "User.name"},{"name": "User.age"},
{"name": "User.clerk_id"}]},{"name": "dgraph.graphql","fields":
[{"name": "dgraph.graphql.schema"},{"name": "dgraph.graphql.xid"}]},{"name":
"dgraph.graphql.persisted_query", "fields": [{"name": "dgraph.graphql.p_query"}]}]}`,
string(resp.GetJson()))
}

func TestCreateApiWithNonStruct(t *testing.T) {
Expand Down

0 comments on commit 95d75a9

Please sign in to comment.