You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR has some cleanup tasks:
- Reorganized the information architecture a bit so that sections flow
better
- Fixed broken links
- Fixed a code snippet that wasn't closed off/bleeding into a section
- Updated auth strategy guide w/ callouts for not using resolver auth in
production per @benjie request
Please let me know if there are any other tweaks I can include!
---------
Co-authored-by: Benjie <[email protected]>
Co-authored-by: Jovi De Croock <[email protected]>
Copy file name to clipboardExpand all lines: website/pages/docs/authentication-and-express-middleware.mdx
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,8 @@ title: Using Express Middleware with GraphQL.js
3
3
sidebarTitle: Using Express Middleware
4
4
---
5
5
6
+
# Authentication and Express Middleware
7
+
6
8
import { Tabs } from'nextra/components';
7
9
8
10
It's simple to use any Express middleware in conjunction with `graphql-http`. In particular, this is a great pattern for handling authentication.
@@ -101,4 +103,4 @@ If you aren't familiar with any of these authentication mechanisms, we recommend
101
103
102
104
If you've read through the docs linearly to get to this point, congratulations! You now know everything you need to build a practical GraphQL API server.
103
105
104
-
Want to control access to specific operations or fields? See [Authorization Strategies](\pages\docs\authorization-strategies.mdx).
106
+
Want to control access to specific operations or fields? See [Authorization Strategies](./authorization-strategies).
Copy file name to clipboardExpand all lines: website/pages/docs/basic-types.mdx
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
title: Basic Types
3
3
---
4
4
5
+
# Basic Types
6
+
5
7
import { Tabs } from'nextra/components';
6
8
7
9
In most situations, all you need to do is to specify the types for your API using the GraphQL schema language, taken as an argument to the `buildSchema` function.
Copy file name to clipboardExpand all lines: website/pages/docs/constructing-types.mdx
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
title: Constructing Types
3
3
---
4
4
5
+
# Constructing Types
6
+
5
7
import { Tabs } from'nextra/components';
6
8
7
9
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