title: Firebase Update specific fields?
body: <p>Im updating my firebase database continuously with this code:</p>
  
  <pre><code>var admin = require("firebase-admin");
  
  
  // Fetch the service account key JSON file contents
  var serviceAccount = require("service.json");
  
  // Initialize the app with a service account, granting admin privileges
  
  admin.initializeApp({
    credential: admin.credential.cert(serviceAccount),
    databaseURL: "DATABASE_URL"
  
  });
  
  var db = admin.database();
  var ref = db.ref("games");
  
  var fs = require('fs');
  var filePath = 'games/2017-06-27.json';
  var file = fs.readFileSync(filePath);
  
  fs.watchFile(filePath, function() {
  
  var request = require('request');
  
  var usersRef = ref.child('2017-06-27');
  
  
  
  request('http://URL/games/2017-06-27.json', function (error, response, body) {
    if (!error &amp;&amp; response.statusCode == 200) {
  
      var asJson = JSON.parse(body)
  
  
      usersRef.update(asJson)
  
     }
  })
  
  });
  </code></pre>
  
  <p>So I get a json with real-time sports data scores, game status etc (using another service). I then use node to check changes on the file where the data is stored and write to the firebase database. It works fine, but I don't want to replace the DB. I just want to update the fields that change, because I have other service adding extra data to this child in the database that i want to keep. How can I update only the fields with changes without replacing the all Database and that way keep other extra data that don't come from this request?</p>