if (options.target) {
    query['target.id'] = options.target.id;
    query['target.objectType'] = options.target.objectType;
  }