Skip to content

Commit 8d6a09d

Browse files
authored
Code sample fixes
1 parent 0a1f6c1 commit 8d6a09d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,13 @@ foreach (var page in graphqlPages)
162162
}
163163

164164
//Gather All results for all the pages...
165-
var allResults = allResultPages.SelectMany(p => p);
165+
var allResults = graphqlPages.SelectMany(p => p);
166166
```
167167

168168
#### Stream All Cursor based Page results (netstandard2.1)...
169169
```csharp
170170
//Returns an IAsyncEnumerable<IGraphQLConnectionResults<TResult>>
171-
var graphqlPages = await graphqlResponse.ReceiveGraphQLConnectionPagesAsyncEnumerable<StarWarsCharacter>();
171+
var pagesAsyncEnumerable = graphqlResponse.ReceiveGraphQLConnectionPagesAsyncEnumerable<StarWarsCharacter>();
172172

173173
//Stream the pages...
174174
//NOTE: Using this process to store the resulting page data to a Repository/DB would be done in
@@ -226,13 +226,13 @@ foreach (var page in graphqlPages)
226226
}
227227

228228
//Gather All results for all the pages...
229-
var allResults = allResultPages.SelectMany(p => p);
229+
var allResults = graphqlPages.SelectMany(p => p);
230230
```
231231

232232
#### Stream All Offset based Page results (netstandard2.1)...
233233
```csharp
234234
//Returns an IAsyncEnumerable<IGraphQLCollectionSegmentResults<TResult>>
235-
var graphqlPages = await graphqlResponse.ReceiveGraphQLCollectionSegmentPagesAsyncEnumerable<StarWarsCharacter>();
235+
var pagesAsyncEnumerable = graphqlResponse.ReceiveGraphQLCollectionSegmentPagesAsyncEnumerable<StarWarsCharacter>();
236236

237237
//Stream the pages...
238238
//NOTE: Using this process to store the resulting page data to a Repository/DB would be done in

0 commit comments

Comments
 (0)