node sample to show the behaviour using node.js express and mongoose