[Node-port] Upsert directive and examples

Moved from GitHub flock/9

Posted by hackintoshrao:

Please refer to the following docs,

And add an @upsert directive to the simple schema found in the Readme.md and create couple of upsert example for the Node client.

Also create an example for new upsert API, These examples could be also included in the Node client repo.