Données de requête Appolo dans Angular 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});