Replies: 1 comment 3 replies
-
Currently, I resolve the const cache = cacheExchange({
keys: {
Product(data) {
return null;
// return data.id;
}
}
}); |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys,
I have an example:
GraphQL schema
Request list of orders query
Sample data
Problem:
Order 1
andOrder 2
both have theproduct_id=2
but differentprice
value.When rendering to the frontend the
price
ofproduct_id=2
in the ofOrder2
overwrite theprice
ofOrder1
.Because the
Product
type has the same id value.How to resolve different the
Product
type in the list of orders?Beta Was this translation helpful? Give feedback.
All reactions