-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Field inferring changes and cleanup (#3688)
* remove not needed edge case for infering array of objects to improve code readability * don't lose field args and resolve function when infering array (fixes date format options not available in arrays of dates) * move infering date field to seperate file to improve code readability * don't recreate date field definition for every date field - we can reuse same object * create dedicated Date graphql scalar (based on string scalar) for date fields * pass fieldName to resolver when filtering on types with custom resolvers (date type fields now rely on fieldname info being passed) * use already constructed nextselector instead of rebuilding it again * move infering file field to separate file to improve code readability * create file type field object just once and reuse it * move trying to infer Files from string paths to inferGraphQLType function where rest of value based inferring is done * add tests for inferring File from string paths * add tests for inferring date type from string, array of strings and filtering date fields, move date related test to seperate date test suite
- Loading branch information
1 parent
68fe2ef
commit 820d737
Showing
8 changed files
with
566 additions
and
345 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
Oops, something went wrong.