forked from 99designs/gqlgen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding entity resolver tests for errors, entities with different type…
…s, and requires The tests in this PR are for ensuring we get the expected errors from entity resolvers, that we also handle resolving entities where the representations are for different types, and that requires directive works correctly. To run tests: 1. Go to `plugin/federation` 2. Generate files with `go run github.com/99designs/gqlgen --config testdata/entityresolver/gqlgen.yml` 3. And run `go test ./...`. Verify they all pass.
- Loading branch information
1 parent
ed2d699
commit 590bbd4
Showing
6 changed files
with
976 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.