menu
Channels
Team
Posts
Members
Info

How to send header with mutation in Angular?

I have logout mutation needs "Authorization" header to send the token to the backend. Can someone give me advice?

thumbsup
0
message-simple
1

Duplicate data in response

I am integrating graphql api in my angular project. I am receiving the same data duplicate in each node. Is the any solutions to avoid duplicate data. But in networking when see the response the data is correct.

thumbsup
0
message-simple
1

Angular UI multiple GraphQL Instances and Subscriptions

Hi, I have a solution which has an Angular UI that connects to a GraphQL API. The GraphQL sits in a Kubernetes cluster with 2 replicas running. My Subscriptions don't always work due to there being multiple API instances. I have looked into axelspringer/graphql-google-pubsub but鈥

thumbsup
1
message-simple
1

Testing queries with local data using ApolloTestingController?

Apologies in advance if this is super obvious, but I have a query with a @client directive, on a key handled by a local resolver. This all works fine in the app itself, but it seems like there's no way to pass my local resolvers to ApolloTestingModule, and as a result I'm not鈥

thumbsup
0
message-simple
1

Multiple instances of Apollo service with different stores, wtf?

Hello! Somewhat new to Angular, and I've spent a fair amount of time with Apollo in React. I hit a snag today that surprised me, and I'm wondering if someone can help explain it. I created a fairly standard GraphQLModule like I've seen in a lot of examples: That module is鈥

thumbsup
0
message-simple
3

Is there a smart way to refetch a query when subscription fire ?

Hello world! :) I use Apollo Client to fetch data from api and put it in a mat-table. I use subscription to insert or remove row when another user manage data (realtime stuff ^^) but I think I do it wrong. here is my subscribeToMore code As you can see I compute data from鈥

thumbsup
1
message-simple
1

Somebody use apollo for upload files?

Hello, somebody use apollo for upload files? i try use apollo upload client, but all documentation is for react and i can麓t config for my proyect

thumbsup
1
message-simple
0

Why my mutations never return in Angular?

I can't get my mutations to return anything. I can see in the network tab of the developer tools that the request went through and returned status 200. my code:

thumbsup
0
message-simple
3

Mutate Subscribe never gets called

I have tried just about everything. For some reason I can call queries but when I do mutations they go through and are successful. However, the subscribe callback never gets called and I can never see the result. I put breakpoints in the fromPromise code in the package. It just鈥

thumbsup
0
message-simple
7

Question about Error handling in Apollo GraphQL w/ Angular

Hey! I am trying to add Error Handling to my GraphQL module in my Angular project. I have followed this documentation w/o success and I don't know how to proceed. 鈥

thumbsup
1
message-simple
0