rethinkdb-websocket-server
rethinkdb-websocket-server copied to clipboard
Node.js WebSocket server that proxies to RethinkDB. Supports query validation.
What's the best way to validate a query like this? For example, to ensure _id > 0_ ``` r.table('test').insert([{id: 1}, {id: -1}]) // Query r.table('test').insert(RP.check(arr => arr.every(e => e.id >...
If the connection to the database gets interrupted (e.g. database is restarted), the server seems to crash permanently. It would be great if the server could reconnect when the connection...
It would be great if a client could do something like r.table('turtles').filter({name: 'Ralph'}), and the server would automatically inject the herdId filter (from your example) in between the .table and...
It would be nice if developers could add before-execute and after-execute callback functions to their queries in the whitelist. Some use cases: - Send push notifications after a row is...
Great work on this! I'm excited to try it out. I haven't yet grokked the queryWhiteList bit - I think I need to read the code a couple more times....