From
async update<T extends keyof C['collections']>({
collection,
data,
...toQs
}: {
collection: T;
data: DeepPartial<C['collections'][T]>;
depth?: number;
draft?: boolean;
fallbackLocale?: C['locale'];
id: C['collections'][T]['id'];
locale?: C['locale'];
where: Where;
}): Promise<BulkOperationResult<C['collections'][T]>> {
const qs = buildQueryString(toQs);
const response = await this.fetcher(`${this.apiURL}/${collection.toString()}${qs}`, {
body: JSON.stringify(data),
headers: {
'Content-Type': 'application/json',
},
method: 'DELETE',
});
return response.json();
}
Should be method: 'PATCH'
From
payload-enchants/packages/sdk/src/index.ts
Line 192 in 7cd7c95
Should be
method: 'PATCH'