Skip to content

Instantly share code, notes, and snippets.

@DanJFletcher
Created October 5, 2018 22:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanJFletcher/288ad10c2990ffc2b2a4788efe306de2 to your computer and use it in GitHub Desktop.
Save DanJFletcher/288ad10c2990ffc2b2a4788efe306de2 to your computer and use it in GitHub Desktop.
private fetchAssets() {
this.apollo.watchQuery<{}>({
query: this.assetsQuery
})
.valueChanges
.subscribe(({ data }) => {
this.assets = data.assets;
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment