Dane dotyczące zapytania Appolo w kątowym GraphQL
'cache-first' | 'cache-and-network' | 'network-only' | 'cache-only' | 'standby'
Farhan Ali
'cache-first' | 'cache-and-network' | 'network-only' | 'cache-only' | 'standby'
this.apollo.query({query: VideoQuery, fetchPolicy: 'network-only'})
.subscribe(()=>{ console.log('refresh done, our watchQuery will update') })
this.data = this.apollo.watchQuery({query: VideoQuery, pollInterval: 10000});