How make graphql apollo query request inside controller, but not component?

How make graphql apollo query request inside controller, but not component? In RTK query we can just use something like initiate for example, but what about apollo? Can we make request outside component somewhere on controller? >Solution : You can use client.query() to run a query outside of a React component. [docs]

RxJS .pipe() add some items to result array

I have a need of adding some static values to the result array that i get from apollo. Here is my code that filters the array and sorts it alphabetically by name, that is why i want to add items in between those 2 pipes: return this.myService .loadCards() .pipe( map((allCards) => allCards.filter((card) => card.name.toLowerCase().includes(searchQuery.toLowerCase()), ),… Read More RxJS .pipe() add some items to result array