diff --git a/projects/poweredsoft/ngx-data-apollo/package.json b/projects/poweredsoft/ngx-data-apollo/package.json index 96e7143..8e9ba8c 100644 --- a/projects/poweredsoft/ngx-data-apollo/package.json +++ b/projects/poweredsoft/ngx-data-apollo/package.json @@ -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", diff --git a/projects/poweredsoft/ngx-data-apollo/src/lib/GraphQLDataSourceOptionsBuilder.ts b/projects/poweredsoft/ngx-data-apollo/src/lib/GraphQLDataSourceOptionsBuilder.ts index f84a6fa..d9870da 100644 --- a/projects/poweredsoft/ngx-data-apollo/src/lib/GraphQLDataSourceOptionsBuilder.ts +++ b/projects/poweredsoft/ngx-data-apollo/src/lib/GraphQLDataSourceOptionsBuilder.ts @@ -55,7 +55,8 @@ export class GraphQLDataSourceOptionsBuilder { query: this.createGraphQLQuery(query), variables: { criteria: advanceQuery - } + }, + fetchPolicy: 'no-cache' }); return o$.pipe( diff --git a/projects/poweredsoft/ngx-data/src/lib/ngx-data.service.ts b/projects/poweredsoft/ngx-data/src/lib/ngx-data.service.ts index 00f8569..aa946b6 100644 --- a/projects/poweredsoft/ngx-data/src/lib/ngx-data.service.ts +++ b/projects/poweredsoft/ngx-data/src/lib/ngx-data.service.ts @@ -17,7 +17,7 @@ export class GenericRestDataSourceService } private _handleErrorPipe(err: HttpErrorResponse) : Observable { - console.log(typeof(err.error), err); + //console.log(typeof(err.error), err); if (err.status == 500) { return throwError({ diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 82cfdb8..7d16c49 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -55,16 +55,16 @@ export class AppComponent implements OnInit { ngOnInit(): void { this.dataSource.notifyMessage$.subscribe((notification) => { - console.log(notification); + //console.log(notification); }); this.dataSource.validationError$.subscribe((notification) => { - console.log(notification); + //console.log(notification); }); } onCreate(): void { - console.log('excuting command!'); + //console.log('excuting command!'); this.dataSource.executeCommandByName('create', { firstName: "", lastName: "Baba" @@ -76,7 +76,7 @@ export class AppComponent implements OnInit { } onDelete(): void { - console.log('excuting command!'); + //console.log('excuting command!'); this.dataSource.executeCommandByName('delete', { id: 1 }).subscribe(() => {