code: function convertExistingQueryProps(json, builder) {
    const keys = Object.keys(json);
  
    for (let i = 0, l = keys.length; i < l; ++i) {
      const key = keys[i];
      const value = json[key];
  
      if (isQueryProp(value)) {
        json[key] = queryPropToKnexRaw(value, builder);
      }
    }
  
    return json;
  }
docs: Converts the query properties in `json` to knex raw instances. `json` may have query properties even though we removed them. For example they may have been added in lifecycle hooks.