Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit98330e5

Browse files
billfienbergstubailo
authored andcommitted
Fix typo (whereby should be one word; not two) (graphql#570)
Before: "where by default types do not include "null" unless explicitly declared."After: "whereby default types do not include "null" unless explicitly declared."
1 parent68f4852 commit98330e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎site/learn/BestPractice-Introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ In contrast, GraphQL only returns the data that's explicitly requested, so new c
4545

4646
###Nullability
4747

48-
Most type systems which recognise "null" provide both the common type, and the*nullable* version of that type,where by default types do not include "null" unless explicitly declared. However in a GraphQL type system, every field is*nullable* by default. This is because there are many things which can go awry in a networked service backed by databases and other services. A database could go down, an asynchronous action could fail, an exception could be thrown. Beyond simply system failures, authorization can often be granular, where individual fields within a request can have different authorization rules.
48+
Most type systems which recognise "null" provide both the common type, and the*nullable* version of that type,whereby default types do not include "null" unless explicitly declared. However in a GraphQL type system, every field is*nullable* by default. This is because there are many things which can go awry in a networked service backed by databases and other services. A database could go down, an asynchronous action could fail, an exception could be thrown. Beyond simply system failures, authorization can often be granular, where individual fields within a request can have different authorization rules.
4949

5050
By defaulting every field to*nullable*, any of these reasons may result in just that field returned "null" rather than having a complete failure for the request. Instead, GraphQL provides[non-null](/learn/schema/#lists-and-non-null) variants of types which make a guarantee to clients that if requested, the field will never return "null". Instead, if an error occurs, the previous parent field will be "null" instead.
5151

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp