Skip to content

Commit

Permalink
Merge pull request #3066 from dheniges/patch-1
Browse files Browse the repository at this point in the history
Fix sp/items Get Paged Items async iterator documentation
  • Loading branch information
patrick-rodgers authored Jun 7, 2024
2 parents 95173c5 + 206399d commit a7009bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/sp/items.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import "@pnp/sp/items";
const sp = spfi(...);

// Using async iterator to loop through pages of items in a large list
for await (const items of sp.web.lists.getByTitle("BigList").items()) {
for await (const items of sp.web.lists.getByTitle("BigList").items) {
console.log(items);
break; // closes the iterator, returns
}
Expand Down

0 comments on commit a7009bd

Please sign in to comment.