code: function updateKeys(obj, _) {
      var newObj = null;
      if (_.isArray(obj)) {
          newObj = [];
      } else if (_.isObject(obj)) {
          newObj = {};
      } else {
          return obj;
      }
      _.forEach(obj, function(value, key) {
          if (key.replace) {
              var newKey = key.replace(/\$|\./g, '_');
              newObj[newKey] = updateKeys(value, _);
          } else {
              newObj[key] = updateKeys(value, _);
          }
      });
      return newObj;
  }
docs: /*
  Change all key values containing '.' to '_', since the driver won't allow
  keys with dots by default