-
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.
Enhance
schemaExtensions
to Support Both Files and Directories (#4859)
Summary: **Summary** This update enhances the behavior of the `"schemaExtensions"` configuration key, allowing it to specify either: - A folder containing GraphQL schema extension files (as originally documented). - A specific .graphql schema extension file (new functionality). This change unifies behavior between the Watchman query and the walkdir implementation, ensuring consistent handling of schema extensions regardless of configuration. **Details** Previously, the Relay documentation instructed users to configure "schemaExtensions" with a folder path containing the GraphQL schema extensions. However: • Relay did not enforce that the target was a folder. • Users could already specify a single .graphql schema extension file directly and it would work when not using Watchman. This update ensures both approaches work seamlessly with Watchman and enhancing flexibility. The documentation has also been updated to reflect this new functionality. **Why This Change?** This improvement resolves an inconsistency between Watchman and non-Watchman setups, offering better support for varying project configurations without breaking existing workflows. Pull Request resolved: #4859 Reviewed By: evanyeung Differential Revision: D68106213 Pulled By: captbaritone fbshipit-source-id: ca2f2f401429face4b60c88b033099450e6a3e05
- Loading branch information
1 parent
99cbea8
commit be8f5f7
Showing
5 changed files
with
28 additions
and
13 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