-
Notifications
You must be signed in to change notification settings - Fork 2k
Backport v16 commits #4388
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
Closed
Closed
Backport v16 commits #4388
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
434cc98
Add redirect for /api (#4327)
JoviDeCroock beb9fa7
Increase print/visit performance (#4312)
JoviDeCroock d5c1e8d
fix eslint errors with website
yaacovCR 26c7de8
fix sidebar for documentation and `/api-v16` (#4331)
dimaMachina 31a88a3
Add cspell exception (#4335)
JoviDeCroock 5c18922
Improve flow of documentation around GraphiQL (#4340)
benjie 466e16c
typofix: removes extra parenthesis from getting started code snippet …
rabahalishah ac7ad7a
First draft for upgrade guide to v17 (#4310)
JoviDeCroock 1d0cc8f
docs(getting-started): promises current links (#4352)
guspan-tanadi 3805bea
fixed wrong variable name (#4351)
fto-dev 5a169fe
fix(coerce-input-value): input object coercion rejects arrays (#4367)
JoviDeCroock b3879c8
feat(execution): add max coercion errors option to execution context …
cristunaranjo 7662a00
Correct some syntax (#4369)
JoviDeCroock 0f4a254
Update docs for execution options (#4368)
JoviDeCroock e00e83a
docs: Update getting-started.mdx (#4373)
Shubhdeep12 dd6f507
Refactor every code-first example to leverage resolve (#4372)
JoviDeCroock eb41fba
Change to gqlConf 2025 (#4378)
JoviDeCroock 85e5e11
Add missing parenthesis (#4379)
benjie 8b73a88
docs: anatomy of a resolver (#4381)
sarahxsanders 28ace28
docs: understanding graphql errors (#4382)
sarahxsanders 5460ae5
Fix tests
JoviDeCroock 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 hidden or 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 hidden or 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,65 @@ | ||
query queryName($foo: ComplexType, $site: Site = MOBILE) @onQuery { | ||
whoever123is: node(id: [123, 456]) { | ||
id | ||
... on User @onInlineFragment { | ||
field2 { | ||
id | ||
alias: field1(first: 10, after: $foo) @include(if: $foo) { | ||
id | ||
...frag @onFragmentSpread | ||
} | ||
} | ||
} | ||
... @skip(unless: $foo) { | ||
id | ||
} | ||
... { | ||
id | ||
} | ||
} | ||
} | ||
|
||
mutation likeStory @onMutation { | ||
like(story: 123) @onField { | ||
story { | ||
id @onField | ||
} | ||
} | ||
} | ||
|
||
subscription StoryLikeSubscription( | ||
$input: StoryLikeSubscribeInput @onVariableDefinition | ||
) @onSubscription { | ||
storyLikeSubscribe(input: $input) { | ||
story { | ||
likers { | ||
count | ||
} | ||
likeSentence { | ||
text | ||
} | ||
} | ||
} | ||
} | ||
|
||
fragment frag on Friend @onFragmentDefinition { | ||
foo( | ||
size: $size | ||
bar: $b | ||
obj: { | ||
key: "value" | ||
block: """ | ||
block string uses \""" | ||
""" | ||
} | ||
) | ||
} | ||
|
||
{ | ||
unnamed(truthy: true, falsy: false, nullish: null) | ||
query | ||
} | ||
|
||
query { | ||
__typename | ||
} |
This file contains hidden or 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,14 @@ | ||
import { parse } from 'graphql/language/parser.js'; | ||
import { print } from 'graphql/language/printer.js'; | ||
|
||
import { bigDocumentSDL } from './fixtures.js'; | ||
|
||
const document = parse(bigDocumentSDL); | ||
|
||
export const benchmark = { | ||
name: 'Print kitchen sink document', | ||
count: 1000, | ||
measure() { | ||
print(document); | ||
}, | ||
}; |
This file contains hidden or 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 |
---|---|---|
|
@@ -114,6 +114,7 @@ words: | |
- svgr | ||
- ruru | ||
- oneof | ||
- vercel | ||
|
||
# used as href anchors | ||
- graphqlerror | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
this text fix should be integrated into the individual cherry-picked PR so that all tests pass on git bisect when we merge this PR with the rebase strategy.
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 particular looks like this commit could be integrated into the backporting of #4366
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.
i set up a PR with what I mean in #4413 => i also port the changes in coerceInputValue from #4367 to validateInputValue