def filter_connec_entity_for_id_refs(connec_entity, id_references)
      return {} if id_references.empty?

      entity = connec_entity.dup.with_indifferent_access
      tree = build_id_references_tree(id_references)

      filter_connec_entity_for_id_refs_helper(entity, tree)

      # TODO, improve performance by returning an empty hash if all the id_references have their id in the connec hash
      # We should still return all of them if at least one is missing as we are relying on the id
      entity
    end
def filter_connec_entity_for_id_refs(connec_entity, id_references)
      return {} if id_references.empty?

      entity = connec_entity.dup.with_indifferent_access
      tree = build_id_references_tree(id_references)

      filter_connec_entity_for_id_refs_helper(entity, tree)

      # TODO, improve performance by returning an empty hash if all the id_references have their id in the connec hash
      # We should still return all of them if at least one is missing as we are relying on the id
      entity
    end
Returns the connec_entity without all the fields that are not id_references