forked from graphql/graphql-js
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Nonnull operator #5
Closed
Closed
Changes from 44 commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
3519feb
Flow: use semicolon as separate inside types (#3089)
IvanGoncharov 2fa47ec
TEMPORARY: move `*.d.ts` file in new directory
IvanGoncharov 39825ee
Migrate to TS: rename `.js` to `.ts` and fix everything in latter PRs…
saihaj eb32d75
Switch to TS syntax (#3090)
saihaj 524f244
match `.d.ts` definition
saihaj b4ea454
TS Migration: enable tests and remove flow infra (#3091)
saihaj fb24c86
TEMPORARY Workflow (#3093)
saihaj 66b499b
TEMPORARY: Replace `void` with `undefined`
saihaj 2e89d04
build: rename to TS eslint rules and temporarily disable eslint rules
saihaj 66d2623
build: relax tsconfig
saihaj 9341317
Replace `$FlowFixMe` with `@ts-expect-error`
saihaj cc9b99f
refactor: convert ObjMap to use `Record`
saihaj cbe849b
feat: typecast to ensure type safety
saihaj 6a9edcd
convert `$FlowExpectedError` to `@ts-expect-error`
saihaj 1fd3dc6
remove unused `@ts-expect-error`
saihaj c7de521
add more `@ts-expect-error`
saihaj a5895dc
feat: Mutable type utility
saihaj 0d010e8
add fixme and type assertions
saihaj 050e5df
Start importing Wei's changes
0e96f91
moved all of wei's changes over
twof 12505d1
getting required to field nodes
twof 141d15f
add basic tests
magicmark 7a341f3
tidy up
magicmark 0ad30eb
Start adding validation logic
aprilrd 21c745c
Added required field to FieldNode
xuewei8910 ab65f29
Change required to be a ternary for a possible ? operator
aprilrd bd88851
Add more validation test cases around nullability
aprilrd 336d062
Added question mark token and corresponding behavior
xuewei8910 69db41d
Added tests for question mark
xuewei8910 f9f7958
Updated validation rule
xuewei8910 6b85f17
Fixed tests
xuewei8910 29d87b5
Updated the rule to leverage the existing type conflict check
xuewei8910 6532469
Fixed all the tests and clean up unused code
xuewei8910 788b9db
Fixed naming and comments
xuewei8910 e5ef653
Export utility method for third party codegen
xuewei8910 21cb73b
remove old dts
twof 9318f00
fix ast.ts
twof 4bac274
revert some dotfiles
twof e85ccf2
rebase cleanup
twof fb03ce7
cleanup
twof 5dd60af
finish cleanup
twof 2e92dc2
tests passing
twof 4715816
new test and cleanup
twof 8ef3fa8
add executor tests
twof 2719232
address linter errors
twof 187f655
address linter errors
twof 20fdff6
satisfy linter errors
twof b522e2f
prettier run
twof e92f5f4
spelling fixes
twof d820029
more spelling
twof File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Mocha Tests", | ||
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", | ||
"args": [ | ||
"src/execution/__tests__/executor-test.ts" | ||
], | ||
"internalConsoleOptions": "openOnSessionStart", | ||
"skipFiles": ["<node_internals>/**"] | ||
} | ||
] | ||
} |
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case, we'd want the message to use the alias instead of the field name right?