Posts
Members
Info
How do I access response headers while using useQuery?
I noticed this question has been asked before and is unanswered: https://stackoverflow.com/questions/64791676/how-to-access-response-headers-with-apollo-link-rest Re-posting this query to get a fresh set of eyes at it. Any leads on how to do this are appreciated.
0
0
How to specify query for nested REST response [GraphQL error]: Message:…
Hello I am trying to query a REST API which returns a nested array of itself. I am getting this message: [GraphQL error]: Message: Expected Iterable, but did not find one for field "Query.nodes"., Location: [object Object], Path: nodes …
0
0
Fetching GraphQL and REST API together
Is there any way to fetch GraphQL and REST API together ? The problem is that I have two different APIs. One is a GraphQL API and another one is a REST API
1
5
Shaped Response with "bracket notation" as dynamic key
I have a response of an array of user objects, and I would like to shape the data so that it turns to an object where the main key is the value of user Id. Currently I am handling this after the useQuery query resolves with my data. In typical javascript, you can use bracket…
0
0
Batching request
Hi guys, need some help ! Is there any chance of batch requests using apollo-link rest ? thx in advance
0
0
MockedProvider is not working for me. I'm not getting the mockResponse.
const component = renderer.create( <MockedProvider mocks={[ClientNotificationsApiQueryMock]} addTypename={false}> <NotificationBrowser2 sandbox={sandbox} /> …
0
0
Fetch XML and parse it to json
I am struggling parsing xml to json. The request is working just fint, but with my query, I am getting null. You can see my example right here https://stackoverflow.com/questions/64233956/fetch-xml-with-apollo-query-response-with-null I do think the request is working If I use…
0
0