joeartsea / node-red-contrib-airtable

A collection of Node-RED nodes for Airtable.
Apache License 2.0
12 stars 7 forks source link

Allow specifying table name and operation in the message #2

Closed suda closed 6 years ago

suda commented 6 years ago

This PR will allow specifying table name and the operation in the message like so:

msg.table = 'Foo';
msg.operation = 'find';
msg.recId = 'rectgGmxA2D35nP4a';
joeartsea commented 6 years ago

@suda Thank you for PR. operation is also sent as a msg, but what should I do if an unsupported string is sent? I think you need the switch statement default.

suda commented 6 years ago

Good call! I added a default statement :)