When reusing data from a query as an argument to another GraphQL operation, __typename fields can cause errors. To avoid this, you can use the removeTypenameFromVariables link to automatically remove __typename fields from variables in operations.
https://www.apollographql.com/docs/react/api/link/apollo-link-remove-typename