From 151e64786bca1701e124a1890fd67d189e9df091 Mon Sep 17 00:00:00 2001 From: David Lebee Date: Wed, 17 Feb 2021 10:52:36 -0500 Subject: [PATCH] just testing. --- src/app/app.component.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 5c25a2f..5098689 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -1,7 +1,7 @@ import { Component, OnInit } from '@angular/core'; import { GenericRestDataSourceService } from 'projects/poweredsoft/ngx-data/src/public-api'; import { of, Observable } from 'rxjs'; -import { DataSource, IDataSource, IResolveCommandModelEvent } from '@poweredsoft/data'; +import { DataSource, IDataSource, IQueryCriteria, IResolveCommandModelEvent } from '@poweredsoft/data'; import { } from 'projects/poweredsoft/ngx-data-apollo/src/public-api'; import { Apollo } from 'apollo-angular'; import gql from 'graphql-tag'; @@ -26,6 +26,12 @@ export interface IEchoCommand { message: string } +export interface IMyQuery extends IQueryCriteria{ + params: { + showDisabled: boolean + } +} + @Component({ selector: 'app-root', templateUrl: './app.component.html', @@ -44,6 +50,12 @@ export class AppComponent implements OnInit { page: 1, pageSize: 5 }) + .beforeRead(q => { + q.params = { + showDisabled: true + }; + return of(q); + }) .queryUrl('https://localhost:5001/api/query/contacts') .addCommandByUrl("createPerson", 'https://localhost:5001/api/command/createPerson', e => {