splitUniques = (fields, state, fuzzyStrings) => {
  let uniques = {};
  let nonUniques = {};
  Object.entries(state).forEach(([k, v]) => {
    const field = fields.find((f) => f.name === k);
    if (
      field &&
      field.is_unique &&
      fuzzyStrings &&
      field.type &&
      field.type.name === "String"
    )
      uniques[k] = { ilike: v };
    else if (field && field.is_unique)
      uniques[k] = field.type.read ? field.type.read(v) : v;
    else nonUniques[k] = v;
  });
  return { uniques, nonUniques };
}
@function
@param {Field[]} fields
@param {object} state
@param {boolean} [fuzzyStrings]
@returns {object}