I would like to set the write concern for an entire collection using the mongojs library.
This is what I think the code might look like
var mongojs = require('mongojs');
var db = mongojs('testdb');
var test = db.collection('test', {writeConcern: {w: 0}});
but I'm having a very difficult time testing if this's working or not since no matter what I pass no errors get thrown and nothing changes in the responses.
How can I change the default write concern for an entire collection or is it not even possible?