requiresPost property

bool get requiresPost

Queries longer than 11kB can’t be submitted using the GET method, so they must be POSTed. See https://www.sanity.io/docs/http-query

Implementation

bool get requiresPost {
  final uri = getUri;
  final bytes = utf8.encode(uri.toString());
  return bytes.lengthInBytes > _maxGetQuerySize;
}