mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
entc/mutation: expose builder api for getting mutations (#531)
This commit is contained in:
@@ -74,6 +74,11 @@ func (nc *NodeCreate) SetNext(n *Node) *NodeCreate {
|
||||
return nc.SetNextID(n.ID)
|
||||
}
|
||||
|
||||
// Mutation returns the NodeMutation object of the builder.
|
||||
func (nc *NodeCreate) Mutation() *NodeMutation {
|
||||
return nc.mutation
|
||||
}
|
||||
|
||||
// Save creates the Node in the database.
|
||||
func (nc *NodeCreate) Save(ctx context.Context) (*Node, error) {
|
||||
var (
|
||||
|
||||
Reference in New Issue
Block a user