fix issue with query cache
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@poweredsoft/ngx-data-apollo",
|
||||
"version": "0.0.3",
|
||||
"version": "0.0.5",
|
||||
"peerDependencies": {
|
||||
"@poweredsoft/data": "^0.0.26",
|
||||
"@angular/common": "^8.2.4",
|
||||
|
||||
@@ -55,7 +55,8 @@ export class GraphQLDataSourceOptionsBuilder<TModel, TKey> {
|
||||
query: this.createGraphQLQuery(query),
|
||||
variables: {
|
||||
criteria: advanceQuery
|
||||
}
|
||||
},
|
||||
fetchPolicy: 'no-cache'
|
||||
});
|
||||
|
||||
return o$.pipe(
|
||||
|
||||
@@ -17,7 +17,7 @@ export class GenericRestDataSourceService
|
||||
}
|
||||
|
||||
private _handleErrorPipe(err: HttpErrorResponse) : Observable<IDataSourceError> {
|
||||
console.log(typeof(err.error), err);
|
||||
//console.log(typeof(err.error), err);
|
||||
|
||||
if (err.status == 500) {
|
||||
return throwError(<IDataSourceErrorMessage>{
|
||||
|
||||
Reference in New Issue
Block a user