single method

Retrieves only one row from the result.

Result must be one row (e.g. using limit), otherwise this will result in an error.

postgrest.from('users').select().limit(1).single()

Implementation

PostgrestTransformBuilder single() {
  headers['Accept'] = 'application/vnd.pgrst.object+json';
  return this;
}