-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove DEPRECATE__create method (and fixes related to it)
Summary: This diff contains multiple changes: - Breaking changes to the TestSchema from `relay-test-utils-internal`. Currently, it's an instance of `GraphQLSchema`. This diff makes it an instance of `Schema` - internal schema representation. - Removing `DEPRECATE__create` method from `Schema` module. This method used to create an instance of `GraphQLSchema` to create an instance of `Schema`. We were using this in most of our tests. - Update all tests, where we use to have `DEPRECATE__create`. - `Schema.extend(...)` method can also accept an arrow of strings (with schema extensions) - for more ergonomic usage in the tests. One thing to notice here: - Since now we only accept the `SDL` file as an input for the schema, we no longer able to use `EnumType.getValues()` - which may have different values than the keys (not an issue for internal users) - but may be a problem for OSS customers. Reviewed By: kassens Differential Revision: D18337577 fbshipit-source-id: 32d714b0a3310d55964ebd86524478b49dc72340
- Loading branch information
1 parent
85db9a1
commit 860c23c
Showing
42 changed files
with
172 additions
and
442 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
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
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
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
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.