Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit d82f688

Browse files
Fix URLs to the GraphQL Specification and its repository (#514)
1 parent 3412b88 commit d82f688

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ for example:
260260

261261
## Additional Validation Rules
262262

263-
GraphQL's [validation phase](https://facebook.github.io/graphql/#sec-Validation) checks the query to ensure that it can be successfully executed against the schema. The `validationRules` option allows for additional rules to be run during this phase. Rules are applied to each node in an AST representing the query using the Visitor pattern.
263+
GraphQL's [validation phase](https://graphql.github.io/graphql-spec/#sec-Validation) checks the query to ensure that it can be successfully executed against the schema. The `validationRules` option allows for additional rules to be run during this phase. Rules are applied to each node in an AST representing the query using the Visitor pattern.
264264

265265
A validation rule is a function which returns a visitor for one or more node Types. Below is an example of a validation preventing the specific fieldname `metadata` from being queried. For more examples see the [`specifiedRules`](https://github.com/graphql/graphql-js/tree/master/src/validation/rules) in the [graphql-js](https://github.com/graphql/graphql-js) package.
266266

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ function graphqlHTTP(options: Options): Middleware {
339339
})
340340
.then(result => {
341341
// Collect and apply any metadata extensions if a function was provided.
342-
// http://facebook.github.io/graphql/#sec-Response-Format
342+
// http://graphql.github.io/graphql-spec/#sec-Response-Format
343343
if (result && extensionsFn) {
344344
return Promise.resolve(
345345
extensionsFn({
@@ -368,7 +368,7 @@ function graphqlHTTP(options: Options): Middleware {
368368
// error, indicate as such with a generic status code.
369369
// Note: Information about the error itself will still be contained in
370370
// the resulting JSON payload.
371-
// http://facebook.github.io/graphql/#sec-Data
371+
// http://graphql.github.io/graphql-spec/#sec-Data
372372
if (response.statusCode === 200 && result && !result.data) {
373373
response.statusCode = 500;
374374
}

0 commit comments

Comments
 (0)