hasura / hasura/graphql-engine
[regression] Apollo Cache does not work with Actions
- Dominant language
- TypeScript
- Stars
- 32.1k
- Forks
- 3k
- PR merge metrics
- PR metrics pending
Description
I'm currently using Hasura 2.0.0-alpha9 with Apollo Client 3.3.15
All queries, mutations, and subscriptions are working as expected, except for queries to Actions.
I have the following Action:

The Backend responds with the correct JSON data.
Apollo Query (default) does not work, the `data` and `error` keys are empty (undefined).
This DOES not work
```js
const { loading, data, error } = useQuery(QUERY)
```
This WORKS
```js
const { loading, data, error } = useQuery(QUERY, {
fetchPolicy: 'network-only',
})
```
I'm assuming that Apollo makes the request, stores the data into the cache, reads from the cache, and then responds but it isn't being able to get the data from the cache.
I checked the Network tab and I'm getting the data

I'm also checked it using the `fetch` API

And this is from Apollo Chrome extension


It was working fine in Hasura 1.3.3 but stopped working on 2.0.0, is there something that changed in Actions?
Contributor guide
Assessment
This issue has not been assessed yet.