# Randomizing MongoDB Document Fields on a Repeating Timer with Node.js

DevFeed: [Randomizing MongoDB Document Fields on a Repeating Timer with Node.js](<https://devfeed.tech/articles/randomizing-mongodb-document-fields-on-a-repeating-timer-with-node-js-21818.md>)

Original publisher: [Read original article](<https://www.thepolyglotdeveloper.com/blog/2022/08/randomizing-mongodb-document-fields-repeating-timer-nodejs/>)

Author: Nic Raboy

Published: 2022-08-12T13:00:00Z

Content type: tutorial

Language: en

Sources: [Nic Raboy](<https://devfeed.tech/sources/nic-raboy.md>)

Topics: [MongoDB](<https://devfeed.tech/topics/mongodb.md>), [Tutorial](<https://devfeed.tech/topics/tutorial.md>), [Node.js](<https://devfeed.tech/topics/node-js.md>), [.env](<https://devfeed.tech/topics/dotenv.md>), [Unity](<https://devfeed.tech/topics/unity.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [environment-variables](<https://devfeed.tech/tags/environment-variables.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [mongodb](<https://devfeed.tech/tags/mongodb.md>), [node-js](<https://devfeed.tech/tags/node-js.md>), [nosql](<https://devfeed.tech/tags/nosql.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

## AI overview

This tutorial explains how to update MongoDB documents on a repeating timer using Node.js. It presents a standalone example inspired by a MongoDB and Unity game demo, with setup requirements and Node.js project dependency configuration.

## Source excerpt

About a year ago I created a game with MongoDB and Unity and wrote about it in a previous tutorial. The idea was to demonstrate how features within the game could be synchronized to each player in nea... The post Randomizing MongoDB Document Fields on a Repeating Timer with Node.js appeared first on The Polyglot Developer.