File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 1- import {
2- Options ,
3- Variables ,
4- } from './types'
1+ import { Options , Variables } from './types'
52import 'cross-fetch/polyfill'
63import * as DataLoader from 'dataloader'
74import { ClientError } from './ClientError'
@@ -14,7 +11,7 @@ export class BatchedGraphQLClient {
1411 constructor ( uri : string , options ?: Options ) {
1512 this . uri = uri
1613 this . options = options || { }
17- this . dataloader = new DataLoader ( this . load )
14+ this . dataloader = new DataLoader ( this . load , { cache : false } )
1815 }
1916
2017 async request < T extends any > (
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export interface Options {
1313}
1414
1515export type HttpOptions = Options & {
16- uri : string ,
16+ uri : string
1717}
1818
1919export interface GraphQLError {
You can’t perform that action at this time.
0 commit comments