I’d like to be able to define the returned field of the response of an OData query. Currently it doesn’t seem possible. Is it?
from this :
ngAfterContentInit(): void {
console.log('test :');
this.findContent('users?$select={total}').subscribe(x => console.log(x));
}
findContent(oDataQuery: string): Observable<Object> {
const url = `${this.END_POINT}${oDataQuery}`;
return this.httpClient.get(url) as Observable<Object>;
}
I tried with all standard OData valid queries: “$select=total”, “$count” and “$inlineCount” none of them works
I should only have this :
or something like : “{ ‘total’ : 4}”