Tyler Clendenin
10/09/2021, 8:07 PMEnumerable typed properties so I can always deal with them as arrays? Same question with XOR is there any helper methods to assist in working with it.
This relates to the above question because I am piping my upsert records into another stream processor to attempt to upsert any related records prior to running the upsert on the main records.Ryan
10/11/2021, 6:05 AMTyler Clendenin
10/11/2021, 2:14 PMconst enumerableToArray = <T>(value: Prisma.Enumerable<T>): Array<T> => {
return Array.isArray(value) ? value : [value];
};
I was trying to parse out a preexisting list WhereInput to "pre-create" the records from the connectOrCreate that were giving me the duplicate key errrors. I ended up not having to deal with the XOR in a programmatic way