# \#apollo-client

**URL:** https://discuss.dgraph.io/tag/apollo-client/234.md

[Latest](https://discuss.dgraph.io/latest.md) · [Categories](https://discuss.dgraph.io/categories.md) · [Tags](https://discuss.dgraph.io/tags.md)

---

## [How to subscribe to Slash GraphQL in the correct way, getting 301 error](https://discuss.dgraph.io/t/how-to-subscribe-to-slash-graphql-in-the-correct-way-getting-301-error/11310)

<div class="topic-metadata">

**Author:** [@sourabhbagrecha](https://discuss.dgraph.io/u/sourabhbagrecha)\
**Replies:** 3\
**Last updated:** [February 2, 2022, 7:24am UTC](https://discuss.dgraph.io/t/how-to-subscribe-to-slash-graphql-in-the-correct-way-getting-301-error/11310 "2022-02-02T07:24:29Z")

</div>

So I have been trying to subscribe to Slash GraphQL, but I am getting a 301 error: WebSocket connection to ‘ws://\*\*\*\*\*\*-d.ap-south-1.aws.cloud.dgraph.io/graphql’ failed: Error during WebSocket handshake: Unexpected res…

---

## [HTTP response code](https://discuss.dgraph.io/t/http-response-code/16278)

<div class="topic-metadata">

**Author:** [@cueloop](https://discuss.dgraph.io/u/cueloop)\
**Replies:** 4\
**Last updated:** [December 10, 2021, 8:47am UTC](https://discuss.dgraph.io/t/http-response-code/16278 "2021-12-10T08:47:14Z")

</div>

Hi, I am trying to setup Apollo Client in a React web app with Cognito JWT Tokens using Amplify. So, I noticed I was getting 200 as response code on a GraphQL request with an expired token. Is that correct? This imple…

---

## [DQL with Apollo Client](https://discuss.dgraph.io/t/dql-with-apollo-client/16070)

<div class="topic-metadata">

**Author:** [@johnholiver](https://discuss.dgraph.io/u/johnholiver)\
**Replies:** 3\
**Last updated:** [November 17, 2021, 9:07am UTC](https://discuss.dgraph.io/t/dql-with-apollo-client/16070 "2021-11-17T09:07:42Z")

</div>

Hi dgraph hivemind, DQL cannot be used with Apollo Client, is that right? My readings suggest that it wouldn’t work. The references/examples within dgraph community are usually mentioning Apollo Client in combination …

---

## [Optimistic updates with Apollo Graphql](https://discuss.dgraph.io/t/optimistic-updates-with-apollo-graphql/12421)

<div class="topic-metadata">

**Author:** [@jdgamble555](https://discuss.dgraph.io/u/jdgamble555)\
**Replies:** 9\
**Last updated:** [January 26, 2021, 1:13pm UTC](https://discuss.dgraph.io/t/optimistic-updates-with-apollo-graphql/12421 "2021-01-26T13:13:19Z")

</div>

I am trying to figure out how to get an optimistic response when I add a task to my todo list. ADD\_TASK mutation export const ADD\_TASK = gql\` mutation addTask($task: AddTaskInput!) { addTask(input: \[$task\]) { …

---

## [Delete Mutation after results to update client cache](https://discuss.dgraph.io/t/delete-mutation-after-results-to-update-client-cache/11403)

<div class="topic-metadata">

**Author:** [@amaster507](https://discuss.dgraph.io/u/amaster507)\
**Replies:** 1\
**Last updated:** [November 10, 2020, 3:43am UTC](https://discuss.dgraph.io/t/delete-mutation-after-results-to-update-client-cache/11403 "2020-11-10T03:43:55Z")

</div>

I am making really good headway implementing the generated mutations within my app (React). I am using the Apollo Client Hooks (currently 3.1.4). I thought I was going to have to do some long tedious cache update functio…

---

## [Filtering with null / optional variable via apollo client](https://discuss.dgraph.io/t/filtering-with-null-optional-variable-via-apollo-client/11320)

<div class="topic-metadata">

**Author:** [@marcown](https://discuss.dgraph.io/u/marcown)\
**Replies:** 3\
**Last updated:** [November 6, 2020, 8:08am UTC](https://discuss.dgraph.io/t/filtering-with-null-optional-variable-via-apollo-client/11320 "2020-11-06T08:08:01Z")

</div>

Hi there! Report a Dgraph Bug What version of Dgraph are you using? Dgraph version : v20.11.0-gfbc4c2899 Have you tried reproducing the issue with the latest release? yes What is the hardware spec (RAM, OS)? arch li…

---

## [Getting Auth and Subscription to work together](https://discuss.dgraph.io/t/getting-auth-and-subscription-to-work-together/9711)

<div class="topic-metadata">

**Author:** [@timcash](https://discuss.dgraph.io/u/timcash)\
**Replies:** 3\
**Last updated:** [August 28, 2020, 12:46am UTC](https://discuss.dgraph.io/t/getting-auth-and-subscription-to-work-together/9711 "2020-08-28T00:46:31Z")

</div>

Any tips on getting the two to work together? I have a function to setup the Apollo Client on the backend. getToken is a function that returns a token from Auth0 signed by the shared key async function identify() { co…
