Skip to content

Commit 460ae7a

Browse files
committed
Ensure all graphql-js docs have graphql-js URLs
And add in redirect links for existing URLs to ensure no breakage.
1 parent 69bf869 commit 460ae7a

File tree

17 files changed

+59
-35
lines changed

17 files changed

+59
-35
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
var React = require('react')
2+
var Redirect = require('../../_core/Redirect')
3+
export default () => <Redirect to="/graphql-js/errors/" />
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
var React = require('react')
2+
var Redirect = require('../../_core/Redirect')
3+
export default () => <Redirect to="/graphql-js/execution/" />
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
var React = require('react')
2+
var Redirect = require('../../_core/Redirect')
3+
export default () => <Redirect to="/graphql-js/express-graphql/" />
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
var React = require('react')
2+
var Redirect = require('../../_core/Redirect')
3+
export default () => <Redirect to="/graphql-js/graphql/" />
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
var React = require('react')
2+
var Redirect = require('../../_core/Redirect')
3+
export default () => <Redirect to="/graphql-js/language/" />
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
var React = require('react')
2+
var Redirect = require('../../_core/Redirect')
3+
export default () => <Redirect to="/graphql-js/type/" />
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
var React = require('react')
2+
var Redirect = require('../../_core/Redirect')
3+
export default () => <Redirect to="/graphql-js/utilities/" />
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
var React = require('react')
2+
var Redirect = require('../../_core/Redirect')
3+
export default () => <Redirect to="/graphql-js/validation/" />

site/graphql-js/APIReference-Errors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
title: graphql/error
33
layout: ../_core/GraphQLJSLayout
44
category: API Reference
5-
permalink: /docs/api-reference-errors/
5+
permalink: /graphql-js/error/
66
sublinks: formatError,GraphQLError,locatedError,syntaxError
7-
next: /docs/api-reference-execution/
7+
next: /graphql-js/execution/
88
---
99

1010
The `graphql/error` module is responsible for creating and formatting

site/graphql-js/APIReference-Execution.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
title: graphql/execution
33
layout: ../_core/GraphQLJSLayout
44
category: API Reference
5-
permalink: /docs/api-reference-execution/
5+
permalink: /graphql-js/execution/
66
sublinks: execute
7-
next: /docs/api-reference-language/
7+
next: /graphql-js/language/
88
---
99

1010
The `graphql/execution` module is responsible for the execution phase of

site/graphql-js/APIReference-ExpressGraphQL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
title: express-graphql
33
layout: ../_core/GraphQLJSLayout
44
category: API Reference
5-
permalink: /docs/api-reference-express-graphql/
5+
permalink: /graphql-js/express-graphql/
66
sublinks: graphqlHTTP
7-
next: /docs/api-reference-graphql/
7+
next: /graphql-js/graphql/
88
---
99

1010
The `express-graphql` module provides a simple way to create an [Express](https://expressjs.com/) server that runs a GraphQL API.

site/graphql-js/APIReference-GraphQL.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
title: graphql
33
layout: ../_core/GraphQLJSLayout
44
category: API Reference
5-
permalink: /docs/api-reference-graphql/
5+
permalink: /graphql-js/graphql/
66
sublinks: graphql
7-
next: /docs/api-reference-errors/
7+
next: /graphql-js/error/
88
---
99

1010
The `graphql` module exports a core subset of GraphQL functionality for creation
@@ -32,7 +32,7 @@ var { graphql } = require('graphql'); // CommonJS
3232

3333
<ul class="apiIndex">
3434
<li>
35-
<a href="http://github.com/%3Cspan%20class="x x-first x-last">api-reference-type-system/#graphqlschema">
35+
<a href="http://github.com/type/#graphqlschema">
3636
<pre>class GraphQLSchema</pre>
3737
A representation of the capabilities of a GraphQL Server.
3838
</a>
@@ -43,49 +43,49 @@ var { graphql } = require('graphql'); // CommonJS
4343

4444
<ul class="apiIndex">
4545
<li>
46-
<a href="http://github.com/%3Cspan%20class="x x-first x-last">api-reference-type-system/#graphqlscalartype">
46+
<a href="http://github.com/type/#graphqlscalartype">
4747
<pre>class GraphQLScalarType</pre>
4848
A scalar type within GraphQL.
4949
</a>
5050
</li>
5151
<li>
52-
<a href="http://github.com/%3Cspan%20class="x x-first x-last">api-reference-type-system/#graphqlobjecttype">
52+
<a href="http://github.com/type/#graphqlobjecttype">
5353
<pre>class GraphQLObjectType</pre>
5454
An object type within GraphQL that contains fields.
5555
</a>
5656
</li>
5757
<li>
58-
<a href="http://github.com/%3Cspan%20class="x x-first x-last">api-reference-type-system/#graphqlinterfacetype">
58+
<a href="http://github.com/type/#graphqlinterfacetype">
5959
<pre>class GraphQLInterfaceType</pre>
6060
An interface type within GraphQL that defines fields implementations will contain.
6161
</a>
6262
</li>
6363
<li>
64-
<a href="http://github.com/%3Cspan%20class="x x-first x-last">api-reference-type-system/#graphqluniontype">
64+
<a href="http://github.com/type/#graphqluniontype">
6565
<pre>class GraphQLUnionType</pre>
6666
A union type within GraphQL that defines a list of implementations.
6767
</a>
6868
</li>
6969
<li>
70-
<a href="http://github.com/%3Cspan%20class="x x-first x-last">api-reference-type-system/#graphqlenumtype">
70+
<a href="http://github.com/type/#graphqlenumtype">
7171
<pre>class GraphQLEnumType</pre>
7272
An enum type within GraphQL that defines a list of valid values.
7373
</a>
7474
</li>
7575
<li>
76-
<a href="http://github.com/%3Cspan%20class="x x-first x-last">api-reference-type-system/#graphqlinputobjecttype">
76+
<a href="http://github.com/type/#graphqlinputobjecttype">
7777
<pre>class GraphQLInputObjectType</pre>
7878
An input object type within GraphQL that represents structured inputs.
7979
</a>
8080
</li>
8181
<li>
82-
<a href="http://github.com/%3Cspan%20class="x x-first x-last">api-reference-type-system/#graphqllist">
82+
<a href="http://github.com/type/#graphqllist">
8383
<pre>class GraphQLList</pre>
8484
A type wrapper around other types that represents a list of those types.
8585
</a>
8686
</li>
8787
<li>
88-
<a href="http://github.com/%3Cspan%20class="x x-first x-last">api-reference-type-system/#graphqlnonnull">
88+
<a href="http://github.com/type/#graphqlnonnull">
8989
<pre>class GraphQLNonNull</pre>
9090
A type wrapper around other types that represents a non-null version of those types.
9191
</a>
@@ -96,31 +96,31 @@ var { graphql } = require('graphql'); // CommonJS
9696

9797
<ul class="apiIndex">
9898
<li>
99-
<a href="http://github.com/%3Cspan%20class="x x-first x-last">api-reference-type-system/#graphqlint">
99+
<a href="http://github.com/type/#graphqlint">
100100
<pre>var GraphQLInt</pre>
101101
A scalar type representing integers.
102102
</a>
103103
</li>
104104
<li>
105-
<a href="http://github.com/%3Cspan%20class="x x-first x-last">api-reference-type-system/#graphqlfloat">
105+
<a href="http://github.com/type/#graphqlfloat">
106106
<pre>var GraphQLFloat</pre>
107107
A scalar type representing floats.
108108
</a>
109109
</li>
110110
<li>
111-
<a href="http://github.com/%3Cspan%20class="x x-first x-last">api-reference-type-system/#graphqlstring">
111+
<a href="http://github.com/type/#graphqlstring">
112112
<pre>var GraphQLString</pre>
113113
A scalar type representing strings.
114114
</a>
115115
</li>
116116
<li>
117-
<a href="http://github.com/%3Cspan%20class="x x-first x-last">api-reference-type-system/#graphqlboolean">
117+
<a href="http://github.com/type/#graphqlboolean">
118118
<pre>var GraphQLBoolean</pre>
119119
A scalar type representing booleans.
120120
</a>
121121
</li>
122122
<li>
123-
<a href="http://github.com/%3Cspan%20class="x x-first x-last">api-reference-type-system/#graphqlid">
123+
<a href="http://github.com/type/#graphqlid">
124124
<pre>var GraphQLID</pre>
125125
A scalar type representing IDs.
126126
</a>
@@ -131,7 +131,7 @@ var { graphql } = require('graphql'); // CommonJS
131131

132132
<ul class="apiIndex">
133133
<li>
134-
<a href="http://github.com/%3Cspan%20class="x x-first x-last">api-reference-errors/#formaterror">
134+
<a href="http://github.com/%3Cspan%20class="x x-first x-last">error/#formaterror">
135135
<pre>function formatError</pre>
136136
Format an error according to the rules described by the Response Format.
137137
</a>
@@ -164,16 +164,16 @@ to specify which operation in `requestString` will be run, in cases where
164164
165165
## Schema
166166
167-
See the [Type System API Reference](../api-reference-type-system#schema).
167+
See the [Type System API Reference](../type#schema).
168168
169169
## Type Definitions
170170
171-
See the [Type System API Reference](../api-reference-type-system#definitions).
171+
See the [Type System API Reference](../type#definitions).
172172
173173
## Scalars
174174
175-
See the [Type System API Reference](../api-reference-type-system#scalars).
175+
See the [Type System API Reference](../type#scalars).
176176
177177
## Errors
178178
179-
See the [Errors API Reference](../api-reference-errors)
179+
See the [Errors API Reference](../error)

site/graphql-js/APIReference-Language.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
title: graphql/language
33
layout: ../_core/GraphQLJSLayout
44
category: API Reference
5-
permalink: /docs/api-reference-language/
5+
permalink: /graphql-js/language/
66
sublinks: BREAK,getLocation,Kind,lex,parse,parseValue,printSource,visit
7-
next: /docs/api-reference-type-system/
7+
next: /graphql-js/type/
88
---
99

1010
The `graphql/language` module is responsible for parsing and operating on the GraphQL language. You can import either from the `graphql/language` module, or from the root `graphql` module. For example:

site/graphql-js/APIReference-TypeSystem.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
title: graphql/types
33
layout: ../_core/GraphQLJSLayout
44
category: API Reference
5-
permalink: /docs/api-reference-type-system/
5+
permalink: /graphql-js/type/
66
sublinks: getNamedType,getNullableType,GraphQLBoolean,GraphQLEnumType,GraphQLFloat,GraphQLID,GraphQLInputObjectType,GraphQLInt,GraphQLInterfaceType,GraphQLList,GraphQLNonNull,GraphQLObjectType,GraphQLScalarType,GraphQLSchema,GraphQLString,GraphQLUnionType,isAbstractType,isCompositeType,isInputType,isLeafType,isOutputType
7-
next: /docs/api-reference-utilities/
7+
next: /graphql-js/utilities/
88
---
99

1010
The `graphql/type` module is responsible for defining GraphQL types and schema. You can import either from the `graphql/type` module, or from the root `graphql` module. For example:

site/graphql-js/APIReference-Utilities.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
title: graphql/utilities
33
layout: ../_core/GraphQLJSLayout
44
category: API Reference
5-
permalink: /docs/api-reference-utilities/
5+
permalink: /graphql-js/utilities/
66
sublinks: astFromValue,buildASTSchema,buildClientSchema,buildSchema,introspectionQuery,isValidJSValue,isValidLiteralValue,printIntrospectionSchema,printSchema,typeFromAST,TypeInfo
7-
next: /docs/api-reference-validation/
7+
next: /graphql-js/validation/
88
---
99

1010
The `graphql/utilities` module contains common useful computations to use with

site/graphql-js/APIReference-Validation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: graphql/validation
33
layout: ../_core/GraphQLJSLayout
44
category: API Reference
5-
permalink: /docs/api-reference-validation/
5+
permalink: /graphql-js/validation/
66
sublinks: specifiedRules,validate
77
---
88

site/graphql-js/Guides-ConstructingTypes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Constructing Types
33
layout: ../_core/GraphQLJSLayout
44
category: Advanced Guides
55
permalink: /graphql-js/constructing-types/
6-
next: /docs/api-reference-express-graphql/
6+
next: /graphql-js/express-graphql/
77
---
88

99
For many apps, you can define a fixed schema when the application starts, and define it using GraphQL schema language. In some cases, it's useful to construct a schema programmatically. You can do this using the `GraphQLSchema` constructor.

0 commit comments

Comments
 (0)