We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c852fc3 commit ac37a62Copy full SHA for ac37a62
Postgrest/Table.cs
@@ -501,6 +501,8 @@ internal string GenerateUrl()
501
/// <returns></returns>
502
internal object PrepareRequestData(object data)
503
{
504
+ if (data == null) return new Dictionary<string, string>();
505
+
506
// Check if data is a Collection for the Insert Bulk case
507
if (data is ICollection<T>)
508
return JsonConvert.DeserializeObject<ICollection<T>>(JsonConvert.SerializeObject(data, Client.Instance.SerializerSettings));
0 commit comments