GV14982 / async-airtable

A lightweight npm package to handle working with the Airtable API.
https://www.npmjs.com/package/asyncairtable
MIT License
54 stars 5 forks source link

✨ Add option for destructive update #10

Closed GV14982 closed 4 years ago

GV14982 commented 4 years ago

Airtable offers the option to do a destructive update, so if a field is not specified in the fields you send, it is automatically set to null. Implement this feature per their documentation:

To update referrals records, issue a request to the referrals endpoint. A PATCH request will only update the fields you specify, leaving the rest as they were. A PUT request will perform a destructive update and clear all unspecified cell values. The example at the right uses the non-destructive PATCH method