Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 73d3af6

Browse files
committed
docs(cookbook/graphql): Filter for top heroes in dashboard
1 parent fb2a45b commit 73d3af6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

public/docs/_examples/heroes-graphql/ts/app/dashboard.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ export class DashboardComponent implements OnInit {
4343
}
4444
}
4545
`,
46+
forceFetch: true
4647
}).subscribe((queryResult: ApolloQueryResult) => {
47-
this.heroes = queryResult.data.heroes;
48+
this.heroes = queryResult.data.heroes.slice(1, 5)
4849
});
4950
}
5051
// #enddocregion query-heroes

0 commit comments

Comments
 (0)