readFragment abstract method

Map<String, dynamic>? readFragment(
  1. FragmentRequest fragmentRequest, {
  2. bool optimistic,

Reads a GraphQL fragment from any arbitrary id.

If there is more than one fragment in the provided document then a fragmentName must be provided to fragmentRequest.fragment to select the correct fragment.


Map<String, dynamic>? readFragment(
  FragmentRequest fragmentRequest, {
  bool optimistic,