Back to top

ReQL command: noreplyWait

Command syntax


conn.noreplyWait() → promise


noreplyWait ensures that previous queries with the noreply flag have been processed by the server. Note that this guarantee only applies to queries run on the given connection.

If no callback is provided, a promise will be returned.

Example: We have previously run queries with the noreply argument set to true. Now wait until the server has processed them.

conn.noreplyWait(function(err) { ... })

Alternatively, you can use promises.

conn.noreplyWait().then(function() {
    // all queries have been processed
}).error(function(err) {
    // process error

Get more help

Couldn't find what you were looking for?