OptionalidOptionaloptimisticWhether to read from optimistic or non-optimistic cache data.
This option should be preferred over the optimistic parameter of the
readQuery method.
The GraphQL query shape to be used constructed using the gql template
string tag. The query will be used to determine the
shape of the data to be read.
OptionalreturnWhether to return incomplete data rather than null.
OptionalvariablesAny variables that the GraphQL query may depend on.
The root id to be used. Defaults to "ROOT_QUERY", which is the ID of the root query object. This property makes
readQuerycapable of reading data from any object in the cache.