Hi, there!
I am modifying saleor dashboard authentication logic due to some schema changes in our grapql server. Basically, I have tokenCreate mutation which looks like this.
mutation TokenCreate{
tokenCreate(email: String, password: String) {
token
csrfToken
user {
id
firstName
lastName
isStaff
...and so on
}
}
}
Here the user field is type of UserRegistration, and cached when response is received.
I see the following cached data on Apollo Client DevTools after calling tokenCreate mutation.
Question: Is it possible to query this cache without query modifier with useQuery?
The problem is that our server doesn’t have specific query to get UserRegistration type object. It only comes as a field of tokenCreate or accountRegister.