@@ -204,7 +204,7 @@ export class GridGraphqlWithoutPaginationComponent implements OnInit {
204
204
} ;
205
205
}
206
206
207
- displaySpinner ( isProcessing ) {
207
+ displaySpinner ( isProcessing : boolean ) {
208
208
this . processing = isProcessing ;
209
209
this . status = ( isProcessing )
210
210
? { text : 'processing...' , class : 'alert alert-danger' }
@@ -227,18 +227,18 @@ export class GridGraphqlWithoutPaginationComponent implements OnInit {
227
227
* So we will have to write, by hand, the query to get the continents code & name
228
228
* We also need to resolve the data in a flat array (singleSelect/multipleSelect Filters only accept data at the root of the array)
229
229
*/
230
- getContinents ( ) {
230
+ getContinents ( ) : Observable < GraphqlResult < { code : string ; name : string ; } > > {
231
231
const continentQuery = `query { continents { code, name }}` ;
232
- return this . http . post < GraphqlResult < Country > > ( COUNTRIES_API , { query : continentQuery } ) ;
232
+ return this . http . post < GraphqlResult < { code : string ; name : string ; } > > ( COUNTRIES_API , { query : continentQuery } ) ;
233
233
}
234
234
235
235
/**
236
236
* Calling again the GraphQL backend API, however in this case we cannot use the GraphQL Service to build the query
237
237
* So we will have to write, by hand, the query to get the languages code & name
238
238
* We also need to resolve the data in a flat array (singleSelect/multipleSelect Filters only accept data at the root of the array)
239
239
*/
240
- getLanguages ( ) {
240
+ getLanguages ( ) : Observable < GraphqlResult < { code : string ; name : string ; native : string ; } > > {
241
241
const languageQuery = `query { languages { code, name, native }}` ;
242
- return this . http . post < GraphqlResult < Country > > ( COUNTRIES_API , { query : languageQuery } ) ;
242
+ return this . http . post < GraphqlResult < { code : string ; name : string ; native : string ; } > > ( COUNTRIES_API , { query : languageQuery } ) ;
243
243
}
244
244
}
0 commit comments