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 () {
81128112 this . collectModels ( ) ;
81138113 this . setupMethods ( ) ;
81148114 this . httpLink = new HttpLink ( {
8115- uri : options . url ? options . url : '/graphql'
8115+ uri : options . url ? options . url : '/graphql' ,
8116+ credentials : 'same-origin'
81168117 } ) ;
81178118 this . apolloClient = new ApolloClient ( {
81188119 link : this . httpLink ,
81198120 cache : new InMemoryCache ( ) ,
8120- connectToDevTools : true
8121+ connectToDevTools : this . debugMode
81218122 } ) ;
81228123 this . queryBuilder = new QueryBuilder ( this . logger , this . getModel . bind ( this ) ) ;
81238124 }
Original file line number Diff line number Diff line change 11import QueryBuilder from './queryBuilder' ;
22import { DocumentNode } from 'graphql' ;
3- import { Arguments } from " ./interfaces" ;
3+ import { Arguments } from ' ./interfaces' ;
44
55export default class Logger {
66 private readonly enabled : boolean ;
Original file line number Diff line number Diff line change @@ -45,13 +45,14 @@ export default class VuexORMApollo {
4545 this . setupMethods ( ) ;
4646
4747 this . httpLink = new HttpLink ( {
48- uri : options . url ? options . url : '/graphql'
48+ uri : options . url ? options . url : '/graphql' ,
49+ credentials : 'same-origin'
4950 } ) ;
5051
5152 this . apolloClient = new ApolloClient ( {
5253 link : this . httpLink ,
5354 cache : new InMemoryCache ( ) ,
54- connectToDevTools : true
55+ connectToDevTools : this . debugMode
5556 } ) ;
5657
5758 this . queryBuilder = new QueryBuilder ( this . logger , this . getModel . bind ( this ) ) ;
You can’t perform that action at this time.
0 commit comments