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 Jul 10, 2019. It is now read-only.
I'd like to store objects in the cache that should be treated as scalars by apollo. When writing the objects to the cache, no __typename should be required, and while reading the object no subfields should be required.
As an example, let's assume that I have such a custom TypeScript type:
I'd like to store objects in the cache that should be treated as scalars by apollo. When writing the objects to the cache, no __typename should be required, and while reading the object no subfields should be required.
As an example, let's assume that I have such a custom TypeScript type:
and would like to initialize the apollo client as follows:
So that I can use it in queries, without needing to specify the fields:
In a schema I'd specify
Highlight
as a custom scalar, but I don't see any examples how to do that in apollo-link-state.The text was updated successfully, but these errors were encountered: