rebuild the graph: create References and link Record with them