rethinkdb / horizon-docs

Other
24 stars 36 forks source link

Document `Collection.update`, `Collection.insert` and correct existing write commands #105

Closed danielmewes closed 8 years ago

danielmewes commented 8 years ago

It turns out that we actually have an update and insert function on collections in Horizon (I didn't know about this until a moment ago): https://github.com/rethinkdb/horizon/blob/next/client/src/ast.js#L316

We need to change the following things in http://horizon.io/api/collection/#store :

The full specification of all write commands is here: https://github.com/rethinkdb/horizon/blob/next/protocol.md#insert-store-upsert-replace-update-remove