addTypename property

bool addTypename
getter/setter pairinherited

Whether to add __typename automatically.

This is false by default because gql automatically adds __typename already.

If addTypename is true, it is important for the client to add __typename to each request automatically as well. Otherwise, a round trip to the cache will nullify results unless returnPartialData is true

Implementation

bool addTypename = false;