Open john-kelly opened 6 years ago
something like this:
createOrUpdateOne :
Schema id attributes
->
{ change : Changeset attributes
, select : Selection attributes a
, where_ : Condition attributes
}
-> Request a
createOrUpdateMany :
Schema id attributes
->
{ change : List (Changeset attributes)
, select : Selection attributes a
, order : List (Order attributes)
, limit : Maybe Int
, offset : Maybe Int
}
-> Request (List a)
need to consider option for duplicate resolution:
something like:
type Duplicates = Ignore | Merge
or... just a boolean , mergeDuplicates: Bool
.
https://github.com/PostgREST/postgrest/issues/256