You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 23, 2020. It is now read-only.
When a fragment contains another fragment, patchFragment can't determine which fragment to read from.
fragment someFragment {
id
other {
...otherFragment
}
}
ERROR Error: Uncaught (in promise): Error: Found 2 fragments. `fragmentName` must be provided when there is not exactly 1 fragment.
Error: Found 2 fragments. `fragmentName` must be provided when there is not exactly 1 fragment.
at getFragmentQueryDocument (fragments.js:26)
at InMemoryCache.push../node_modules/apollo-cache-inmemory/lib/inMemoryCache.js.InMemoryCache.readFragment (inMemoryCache.js:221)
at ApolloClient.push../node_modules/apollo-client/ApolloClient.js.ApolloClient.readFragment (ApolloClient.js:124)
at Object.patchFragment (loona.core.js:156)
When a fragment contains another fragment, patchFragment can't determine which fragment to read from.
Apollo cache readFragment takes fragmentName as an option to determine this.
https://github.com/apollographql/apollo-client/blob/master/packages/apollo-cache/src/cache.ts#L80
The text was updated successfully, but these errors were encountered: