C#: Retrieve exactly one row of data

Retrieves exactly one row. Returns the model when one row matches and throws a PostgrestException when no row or several rows match.

Examples

Read one row

var city = await supabase
  .From<City>()
  .Filter("id", Operator.Equals, "554")
  .SingleOrThrowAsync();