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