Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ngOnInit() {
- this.querySubscription = this.apollo.watchQuery<BooksQuery>({
- query: getBooksQuery
- })
- .valueChanges
- .subscribe(({ data }) => {
- this.books = data.books;
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement