File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -8112,12 +8112,13 @@ var VuexORMApollo = /** @class */ (function () {
8112
8112
this . collectModels ( ) ;
8113
8113
this . setupMethods ( ) ;
8114
8114
this . httpLink = new HttpLink ( {
8115
- uri : options . url ? options . url : '/graphql'
8115
+ uri : options . url ? options . url : '/graphql' ,
8116
+ credentials : 'same-origin'
8116
8117
} ) ;
8117
8118
this . apolloClient = new ApolloClient ( {
8118
8119
link : this . httpLink ,
8119
8120
cache : new InMemoryCache ( ) ,
8120
- connectToDevTools : true
8121
+ connectToDevTools : this . debugMode
8121
8122
} ) ;
8122
8123
this . queryBuilder = new QueryBuilder ( this . logger , this . getModel . bind ( this ) ) ;
8123
8124
}
Original file line number Diff line number Diff line change 1
1
import QueryBuilder from './queryBuilder' ;
2
2
import { DocumentNode } from 'graphql' ;
3
- import { Arguments } from " ./interfaces" ;
3
+ import { Arguments } from ' ./interfaces' ;
4
4
5
5
export default class Logger {
6
6
private readonly enabled : boolean ;
Original file line number Diff line number Diff line change @@ -45,13 +45,14 @@ export default class VuexORMApollo {
45
45
this . setupMethods ( ) ;
46
46
47
47
this . httpLink = new HttpLink ( {
48
- uri : options . url ? options . url : '/graphql'
48
+ uri : options . url ? options . url : '/graphql' ,
49
+ credentials : 'same-origin'
49
50
} ) ;
50
51
51
52
this . apolloClient = new ApolloClient ( {
52
53
link : this . httpLink ,
53
54
cache : new InMemoryCache ( ) ,
54
- connectToDevTools : true
55
+ connectToDevTools : this . debugMode
55
56
} ) ;
56
57
57
58
this . queryBuilder = new QueryBuilder ( this . logger , this . getModel . bind ( this ) ) ;
You can’t perform that action at this time.
0 commit comments