Skip to content

Commit

Permalink
Merge pull request #252 from s-KaiNet/patch-2
Browse files Browse the repository at this point in the history
Fixed "v1" graph docs
  • Loading branch information
patrick-rodgers committed Sep 24, 2018
2 parents e7099b7 + 74e84cf commit 2465b5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/graph/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { graph } from "@pnp/graph";
(function main() {

// here we will load the current web's properties
graph.v1.groups.get().then(g => {
graph.groups.get().then(g => {

console.log(`Groups: ${JSON.stringify(g, null, 4)}`);
});
Expand Down Expand Up @@ -58,7 +58,7 @@ public render(): void {
this.domElement.innerHTML = `Loading...`;

// here we will load the current web's properties
graph.v1.groups.get().then(groups => {
graph.groups.get().then(groups => {

this.domElement.innerHTML = `Groups: <ul>${groups.map(g => `<li>${g.displayName}</li>`).join("")}</ul>`;
});
Expand Down Expand Up @@ -87,7 +87,7 @@ graph.setup({
});

// here we will load the groups information
graph.v1.groups.get().then(g => {
graph.groups.get().then(g => {

console.log(`Groups: ${JSON.stringify(g, null, 4)}`);
});
Expand Down

0 comments on commit 2465b5b

Please sign in to comment.