BatchCreate applies the BatchCreateSpec on the graph.
(ctx context.Context, drv dialect.Driver, spec *BatchCreateSpec)
| 755 | |
| 756 | // BatchCreate applies the BatchCreateSpec on the graph. |
| 757 | func BatchCreate(ctx context.Context, drv dialect.Driver, spec *BatchCreateSpec) error { |
| 758 | gr := graph{tx: drv, builder: sql.Dialect(drv.Dialect())} |
| 759 | cr := &batchCreator{BatchCreateSpec: spec, graph: gr} |
| 760 | return cr.nodes(ctx, drv) |
| 761 | } |
| 762 | |
| 763 | type ( |
| 764 | // EdgeMut defines edge mutations. |
searching dependent graphs…