Skip to content

Commit 497b717

Browse files
authored
Fixed typos in DataLoader docs / improve grammatical consistency (#7645)
1 parent 269dc45 commit 497b717

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

website/src/docs/hotchocolate/v11/fetching-data/dataloader.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ A query against the above schema could look like the following:
4040

4141
The above request fetches two persons in one go without the need to call the backend twice. The problem with the GraphQL backend is that field resolvers are atomic and do not have any knowledge about the query as a whole. So, a field resolver does not know that it will be called multiple times in parallel to fetch similar or equal data from the same data source.
4242

43-
The idea of a dataloader is to batch these two requests into one call to the database.
43+
The idea of a DataLoader is to batch these two requests into one call to the database.
4444

4545
Let's look at some code to understand what data loaders are doing. First, let's have a look at how we would write our field resolver without data loaders:
4646

@@ -113,13 +113,13 @@ It executes resolvers until the queue is empty and then triggers the data loader
113113

114114
# Data Consistency
115115

116-
Dataloader do not only batch calls to the database, they also cache the database response.
116+
DataLoader do not only batch calls to the database, they also cache the database response.
117117
A data loader guarantees data consistency in a single request.
118118
If you load an entity with a data loader in your request more than once, it is given that these two entities are equivalent.
119119

120120
Data loaders do not fetch an entity if there is already an entity with the requested key in the cache.
121121

122-
# Types of Data loaders
122+
# Types of DataLoader
123123

124124
In Hot Chocolate you can declare data loaders in two different ways.
125125
You can separate the data loading concern into separate classes or you can use a delegate in the resolver to define data loaders on the fly.

website/src/docs/hotchocolate/v12/fetching-data/dataloader.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ A query against the above schema could look like the following:
4040

4141
The above request fetches two persons in one go without the need to call the backend twice. The problem with the GraphQL backend is that field resolvers are atomic and do not have any knowledge about the query as a whole. So, a field resolver does not know that it will be called multiple times in parallel to fetch similar or equal data from the same data source.
4242

43-
The idea of a dataloader is to batch these two requests into one call to the database.
43+
The idea of a DataLoader is to batch these two requests into one call to the database.
4444

4545
Let's look at some code to understand what data loaders are doing. First, let's have a look at how we would write our field resolver without data loaders:
4646

@@ -113,13 +113,13 @@ It executes resolvers until the queue is empty and then triggers the data loader
113113

114114
# Data Consistency
115115

116-
Dataloader do not only batch calls to the database, they also cache the database response.
116+
DataLoader do not only batch calls to the database, they also cache the database response.
117117
A data loader guarantees data consistency in a single request.
118118
If you load an entity with a data loader in your request more than once, it is given that these two entities are equivalent.
119119

120120
Data loaders do not fetch an entity if there is already an entity with the requested key in the cache.
121121

122-
# Types of Data loaders
122+
# Types of DataLoader
123123

124124
In Hot Chocolate you can declare data loaders in two different ways.
125125
You can separate the data loading concern into separate classes or you can use a delegate in the resolver to define data loaders on the fly.

website/src/docs/hotchocolate/v13/fetching-data/dataloader.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ A query against the above schema could look like the following:
4040

4141
The above request fetches two persons in one go without the need to call the backend twice. The problem with the GraphQL backend is that field resolvers are atomic and do not have any knowledge about the query as a whole. So, a field resolver does not know that it will be called multiple times in parallel to fetch similar or equal data from the same data source.
4242

43-
The idea of a dataloader is to batch these two requests into one call to the database.
43+
The idea of a DataLoader is to batch these two requests into one call to the database.
4444

4545
Let's look at some code to understand what data loaders are doing. First, let's have a look at how we would write our field resolver without data loaders:
4646

@@ -113,13 +113,13 @@ It executes resolvers until the queue is empty and then triggers the data loader
113113

114114
# Data Consistency
115115

116-
Dataloader do not only batch calls to the database, they also cache the database response.
116+
DataLoader do not only batch calls to the database, they also cache the database response.
117117
A data loader guarantees data consistency in a single request.
118118
If you load an entity with a data loader in your request more than once, it is given that these two entities are equivalent.
119119

120120
Data loaders do not fetch an entity if there is already an entity with the requested key in the cache.
121121

122-
# Types of Data loaders
122+
# Types of DataLoader
123123

124124
In Hot Chocolate you can declare data loaders in two different ways.
125125
You can separate the data loading concern into separate classes or you can use a delegate in the resolver to define data loaders on the fly.

website/src/docs/hotchocolate/v14/fetching-data/dataloader.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ A query against the above schema could look like the following:
4040

4141
The above request fetches two persons in one go without the need to call the backend twice. The problem with the GraphQL backend is that field resolvers are atomic and do not have any knowledge about the query as a whole. So, a field resolver does not know that it will be called multiple times in parallel to fetch similar or equal data from the same data source.
4242

43-
The idea of a dataloader is to batch these two requests into one call to the database.
43+
The idea of a DataLoader is to batch these two requests into one call to the database.
4444

4545
Let's look at some code to understand what data loaders are doing. First, let's have a look at how we would write our field resolver without data loaders:
4646

@@ -113,13 +113,13 @@ It executes resolvers until the queue is empty and then triggers the data loader
113113

114114
# Data Consistency
115115

116-
Dataloader do not only batch calls to the database, they also cache the database response.
116+
DataLoader do not only batch calls to the database, they also cache the database response.
117117
A data loader guarantees data consistency in a single request.
118118
If you load an entity with a data loader in your request more than once, it is given that these two entities are equivalent.
119119

120120
Data loaders do not fetch an entity if there is already an entity with the requested key in the cache.
121121

122-
# Types of Data loaders
122+
# Types of DataLoader
123123

124124
In Hot Chocolate you can declare data loaders in two different ways.
125125
You can separate the data loading concern into separate classes or you can use a delegate in the resolver to define data loaders on the fly.

0 commit comments

Comments
 (0)