create method

Future<QueryResult> create(
  1. Query query,
  2. SupabaseClient client
)

Tries to store queries payload in supabase

Implementation

Future<QueryResult> create(Query query, SupabaseClient client) async {
  final response =
      await client.from(query.entityName).insert(query.payload).execute();

  return _queryResultFromPostgrestResponse(query, response);
}