Skip to content

Commit 1699210

Browse files
committed
Add note about masking field errors.
1 parent b690783 commit 1699210

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pages/learn/security.mdx

+2
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ query {
184184

185185
These hints can be helpful when debugging client-side errors, but they may provide more information about a schema in a production environment than we would like to reveal. Hiding detailed error information in GraphQL responses outside of development environments is important because, even with introspection disabled, an attacker could ultimately infer the shape of an entire schema by running numerous operations with incorrect field names.
186186

187+
In addition to request errors, details about errors that are raised during field execution should be masked as they may reveal sensitive information about the server or underlying data sources.
188+
187189
## Authentication and authorization
188190

189191
Auth-related considerations for GraphQL APIs are discussed in-depth on the [Authorization page](/learn/authorization/).

0 commit comments

Comments
 (0)