When I use * to set the relationship, how can I set the direction of all relationships to "UNDIRECTED" at once?

When I use * to set the relationship, how can I set the direction of all relationships to "UNDIRECTED" at once?

@GuoZhi
can you provide more specifics?

Neo4j version?
how are you using * to set the relationship?