Closed Pet3ris closed 3 years ago
It seems like the __typename
is still required even if I disable addTypename
in the Apollo cache:
~cache=Cache.InMemoryCache.make(
~addTypename=false,
()
)
Fix thanks to @jfrolich:
Set:
"graphql": {
"apolloMode": false,
...
}
in bsconfig.json
.
I'm migrating some code from
@bsRecord
to@ppxAs
and running into an issue where the record types used in@ppxAs
have to define__typename
. Given__typename
is a GraphQL internal field to disambiguate types, is there a way not to require this field in records?