From 737fb4afda1290b267e17786b12d1df044356a2a Mon Sep 17 00:00:00 2001 From: Ariel Mashraki <7413593+a8m@users.noreply.github.com> Date: Mon, 8 Jun 2020 15:16:56 +0300 Subject: [PATCH] entc/mutation: expose builder api for getting mutations (#531) --- entc/gen/internal/bindata.go | 8 ++--- entc/gen/template/builder/mutation.tmpl | 2 +- entc/gen/template/builder/setter.tmpl | 8 ++++- entc/integration/config/ent/user_create.go | 5 +++ entc/integration/config/ent/user_update.go | 10 ++++++ entc/integration/customid/ent/blob_create.go | 5 +++ entc/integration/customid/ent/blob_update.go | 10 ++++++ entc/integration/customid/ent/car_create.go | 5 +++ entc/integration/customid/ent/car_update.go | 10 ++++++ entc/integration/customid/ent/group_create.go | 5 +++ entc/integration/customid/ent/group_update.go | 10 ++++++ entc/integration/customid/ent/pet_create.go | 5 +++ entc/integration/customid/ent/pet_update.go | 10 ++++++ entc/integration/customid/ent/user_create.go | 5 +++ entc/integration/customid/ent/user_update.go | 10 ++++++ entc/integration/ent/card_create.go | 5 +++ entc/integration/ent/card_update.go | 10 ++++++ entc/integration/ent/comment_create.go | 5 +++ entc/integration/ent/comment_update.go | 10 ++++++ entc/integration/ent/fieldtype_create.go | 5 +++ entc/integration/ent/fieldtype_update.go | 10 ++++++ entc/integration/ent/file_create.go | 5 +++ entc/integration/ent/file_update.go | 10 ++++++ entc/integration/ent/filetype_create.go | 5 +++ entc/integration/ent/filetype_update.go | 10 ++++++ entc/integration/ent/group_create.go | 5 +++ entc/integration/ent/group_update.go | 10 ++++++ entc/integration/ent/groupinfo_create.go | 5 +++ entc/integration/ent/groupinfo_update.go | 10 ++++++ entc/integration/ent/item_create.go | 5 +++ entc/integration/ent/item_update.go | 10 ++++++ entc/integration/ent/node_create.go | 5 +++ entc/integration/ent/node_update.go | 10 ++++++ entc/integration/ent/pet_create.go | 5 +++ entc/integration/ent/pet_update.go | 10 ++++++ entc/integration/ent/spec_create.go | 5 +++ entc/integration/ent/spec_update.go | 10 ++++++ entc/integration/ent/user_create.go | 5 +++ entc/integration/ent/user_update.go | 10 ++++++ entc/integration/gremlin/ent/card_create.go | 5 +++ entc/integration/gremlin/ent/card_update.go | 10 ++++++ .../integration/gremlin/ent/comment_create.go | 5 +++ .../integration/gremlin/ent/comment_update.go | 10 ++++++ .../gremlin/ent/fieldtype_create.go | 5 +++ .../gremlin/ent/fieldtype_update.go | 10 ++++++ entc/integration/gremlin/ent/file_create.go | 5 +++ entc/integration/gremlin/ent/file_update.go | 10 ++++++ .../gremlin/ent/filetype_create.go | 5 +++ .../gremlin/ent/filetype_update.go | 10 ++++++ entc/integration/gremlin/ent/group_create.go | 5 +++ entc/integration/gremlin/ent/group_update.go | 10 ++++++ .../gremlin/ent/groupinfo_create.go | 5 +++ .../gremlin/ent/groupinfo_update.go | 10 ++++++ entc/integration/gremlin/ent/item_create.go | 5 +++ entc/integration/gremlin/ent/item_update.go | 10 ++++++ entc/integration/gremlin/ent/node_create.go | 5 +++ entc/integration/gremlin/ent/node_update.go | 10 ++++++ entc/integration/gremlin/ent/pet_create.go | 5 +++ entc/integration/gremlin/ent/pet_update.go | 10 ++++++ entc/integration/gremlin/ent/spec_create.go | 5 +++ entc/integration/gremlin/ent/spec_update.go | 10 ++++++ entc/integration/gremlin/ent/user_create.go | 5 +++ entc/integration/gremlin/ent/user_update.go | 10 ++++++ entc/integration/hooks/ent/card_create.go | 5 +++ entc/integration/hooks/ent/card_update.go | 10 ++++++ entc/integration/hooks/ent/user_create.go | 5 +++ entc/integration/hooks/ent/user_update.go | 10 ++++++ entc/integration/idtype/ent/user_create.go | 5 +++ entc/integration/idtype/ent/user_update.go | 10 ++++++ entc/integration/integration_test.go | 31 +++++++++++++++++++ entc/integration/json/ent/user_create.go | 5 +++ entc/integration/json/ent/user_update.go | 10 ++++++ entc/integration/migrate/entv1/car_create.go | 5 +++ entc/integration/migrate/entv1/car_update.go | 10 ++++++ entc/integration/migrate/entv1/user_create.go | 5 +++ entc/integration/migrate/entv1/user_update.go | 10 ++++++ entc/integration/migrate/entv2/car_create.go | 5 +++ entc/integration/migrate/entv2/car_update.go | 10 ++++++ .../integration/migrate/entv2/group_create.go | 5 +++ .../integration/migrate/entv2/group_update.go | 10 ++++++ entc/integration/migrate/entv2/pet_create.go | 5 +++ entc/integration/migrate/entv2/pet_update.go | 10 ++++++ entc/integration/migrate/entv2/user_create.go | 5 +++ entc/integration/migrate/entv2/user_update.go | 10 ++++++ entc/integration/privacy/ent/galaxy_create.go | 5 +++ entc/integration/privacy/ent/galaxy_update.go | 10 ++++++ entc/integration/privacy/ent/planet_create.go | 5 +++ entc/integration/privacy/ent/planet_update.go | 10 ++++++ entc/integration/template/ent/group_create.go | 5 +++ entc/integration/template/ent/group_update.go | 10 ++++++ entc/integration/template/ent/pet_create.go | 5 +++ entc/integration/template/ent/pet_update.go | 10 ++++++ entc/integration/template/ent/user_create.go | 5 +++ entc/integration/template/ent/user_update.go | 10 ++++++ examples/edgeindex/ent/city_create.go | 5 +++ examples/edgeindex/ent/city_update.go | 10 ++++++ examples/edgeindex/ent/street_create.go | 5 +++ examples/edgeindex/ent/street_update.go | 10 ++++++ examples/entcpkg/ent/user_create.go | 5 +++ examples/entcpkg/ent/user_update.go | 10 ++++++ examples/m2m2types/ent/group_create.go | 5 +++ examples/m2m2types/ent/group_update.go | 10 ++++++ examples/m2m2types/ent/user_create.go | 5 +++ examples/m2m2types/ent/user_update.go | 10 ++++++ examples/m2mbidi/ent/user_create.go | 5 +++ examples/m2mbidi/ent/user_update.go | 10 ++++++ examples/m2mrecur/ent/user_create.go | 5 +++ examples/m2mrecur/ent/user_update.go | 10 ++++++ examples/o2m2types/ent/pet_create.go | 5 +++ examples/o2m2types/ent/pet_update.go | 10 ++++++ examples/o2m2types/ent/user_create.go | 5 +++ examples/o2m2types/ent/user_update.go | 10 ++++++ examples/o2mrecur/ent/node_create.go | 5 +++ examples/o2mrecur/ent/node_update.go | 10 ++++++ examples/o2o2types/ent/card_create.go | 5 +++ examples/o2o2types/ent/card_update.go | 10 ++++++ examples/o2o2types/ent/user_create.go | 5 +++ examples/o2o2types/ent/user_update.go | 10 ++++++ examples/o2obidi/ent/user_create.go | 5 +++ examples/o2obidi/ent/user_update.go | 10 ++++++ examples/o2orecur/ent/node_create.go | 5 +++ examples/o2orecur/ent/node_update.go | 10 ++++++ examples/start/ent/car_create.go | 5 +++ examples/start/ent/car_update.go | 10 ++++++ examples/start/ent/group_create.go | 5 +++ examples/start/ent/group_update.go | 10 ++++++ examples/start/ent/user_create.go | 5 +++ examples/start/ent/user_update.go | 10 ++++++ examples/traversal/ent/group_create.go | 5 +++ examples/traversal/ent/group_update.go | 10 ++++++ examples/traversal/ent/pet_create.go | 5 +++ examples/traversal/ent/pet_update.go | 10 ++++++ examples/traversal/ent/user_create.go | 5 +++ examples/traversal/ent/user_update.go | 10 ++++++ 134 files changed, 1018 insertions(+), 6 deletions(-) diff --git a/entc/gen/internal/bindata.go b/entc/gen/internal/bindata.go index 85997bab3..794f42643 100644 --- a/entc/gen/internal/bindata.go +++ b/entc/gen/internal/bindata.go @@ -186,7 +186,7 @@ func templateBuilderDeleteTmpl() (*asset, error) { return a, nil } -var _templateBuilderMutationTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xd4\x5b\x59\x73\x1c\xb7\x76\x7e\xee\xfe\x15\xc7\x5d\xf2\xcd\x34\x33\xee\xb1\xef\x5b\xe4\xf0\x41\x57\xb4\x7d\x59\x95\x88\xa9\x2b\x3a\x2f\x2a\xd5\x35\xd8\xc0\x90\x88\x7a\x19\x37\x30\x43\xb2\xc6\xf3\xdf\x53\xe7\x00\xe8\x06\x7a\x99\x4d\x94\xe2\xf8\xc1\x22\x1b\xdb\x59\xbe\xb3\xe1\x80\xdb\xed\xe2\x22\x7e\x5b\xaf\x9e\x1b\x79\xff\xa0\xe1\xaf\xdf\xff\xf0\x6f\xdf\xad\x1a\xa1\x44\xa5\xe1\x67\x96\x8b\xbb\xba\xfe\x04\xd7\x55\x9e\xc1\x9b\xa2\x00\x9a\xa4\x00\xc7\x9b\x8d\xe0\x59\x7c\xfb\x20\x15\xa8\x7a\xdd\xe4\x02\xf2\x9a\x0b\x90\x0a\x0a\x99\x8b\x4a\x09\x0e\xeb\x8a\x8b\x06\xf4\x83\x80\x37\x2b\x96\x3f\x08\xf8\x6b\xf6\xbd\x1b\x85\x65\xbd\xae\x78\x2c\x2b\x1a\xff\x8f\xeb\xb7\x3f\xbd\x7b\xff\x13\x2c\x65\x21\xc0\x7e\x6b\xea\x5a\x03\x97\x8d\xc8\x75\xdd\x3c\x43\xbd\x04\xed\x1d\xa6\x1b\x21\xb2\xf8\x62\xb1\xdb\xc5\xf1\x76\x0b\x5c\x2c\x65\x25\x20\x29\xd7\x9a\x69\x59\x57\x09\xd8\x81\x57\xab\x4f\xf7\xf0\xfa\x12\xee\x98\x12\xf0\x2a\x7b\x5b\x57\x4b\x79\x9f\xfd\x17\xcb\x3f\xb1\x7b\x81\x93\xb6\x5b\xd0\xa2\x5c\x15\x4c\x0b\x48\x1e\x04\xe3\xa2\x49\xe0\x15\x2d\x97\xe5\xaa\x6e\x34\xcc\xe2\x28\x51\xcf\x55\x9e\xc4\x71\xb4\xdd\x7e\x07\x0d\xab\xee\x05\xbc\xaa\x70\xdb\x57\xd9\xbb\x9a\x0b\x85\xd3\xa3\x28\xc1\xf3\x86\x47\x2c\xf0\x73\xe5\x7d\x48\xcc\x3e\xa2\xe2\x74\x4c\x94\xdc\x4b\xfd\xb0\xbe\xcb\xf2\xba\x5c\x2c\xad\xcc\x65\x95\xaf\xef\x98\xae\x9b\x85\xa8\x74\x12\xa7\x71\x9c\xd7\x95\x22\x62\x16\x0b\xb8\x59\x89\x86\xf8\x04\xfd\xbc\x12\x2a\x8b\xa3\x9b\xd5\xdb\x46\x20\x0f\x00\x70\x09\xa2\xd2\x99\xfb\x82\x63\x57\xa2\x10\xe1\x98\xf9\xd2\x8d\xdd\x54\xa2\x37\x76\x53\xd1\xf0\xaf\x2b\xde\xdb\xd6\x7c\xe9\xc6\xfc\xa5\xed\x97\x98\xe8\x44\xe1\xb4\x24\xee\x95\xdd\xed\xf3\x4a\x18\x39\xbd\x63\x25\x0a\x09\x2e\x21\x09\x3e\x84\x52\x4b\x49\xbb\x13\xdb\x91\xe2\x1d\x14\x68\xac\xca\xfe\xd3\xfe\x6a\x77\x8b\x17\x0b\x08\x66\xed\x76\xd0\x08\x8b\x7c\x05\xac\x82\xba\x93\xf1\x03\xd3\x40\x13\x05\x21\x73\xbb\x85\x55\xb1\x6e\x58\xe1\x51\x87\xfb\x55\x74\xbe\x85\xef\x7d\xc3\x56\x0f\x59\x8c\xcc\x0f\x0e\x52\xba\x59\xe7\x1a\xb6\x71\x94\x13\x58\xe2\xa8\x5e\xc1\xcd\x2a\x8e\xf4\xf3\x0a\x07\x65\x75\x8f\xcc\xe2\xf6\xd7\x57\xd9\xdf\xd6\xb2\xe0\xa2\xf9\x59\x8a\x02\x59\x87\x8b\x76\x04\x85\x46\xe2\xf3\x44\xbb\xb4\xfc\xd2\x74\x2b\x5c\x5c\xb0\x1c\xdf\x67\xd9\x6e\x02\xf6\x3f\xdc\x4b\x2e\x81\x55\xdc\x8d\x66\xef\xd6\xa5\x68\x64\x8e\xbf\xbf\xad\xab\x8d\x68\xb4\xe0\xb7\xf5\xdf\x98\x92\xb9\x39\x20\x62\x9c\x1f\x75\x48\xe4\xeb\x30\xf8\x39\x2f\x04\x6b\x04\xb7\x64\x97\x6c\xf5\xc1\x08\xe2\xa3\x11\xd6\x36\xe4\x52\x58\x2e\x7f\xe2\xf7\x42\x75\x1b\xcb\x25\xbc\x12\xd9\xaf\x95\xfc\x7d\x1d\xf0\x64\xf8\xc2\xb1\x51\xfa\x84\x61\xd3\x97\x68\xe4\x08\x1a\x5f\x76\x57\xd7\x85\x63\xa6\x50\x47\x9e\x85\x4c\x8d\x1e\xe7\xf1\x18\x45\x8d\x28\xeb\xcd\xd4\xb9\x47\x6d\x31\x25\x62\x5e\x57\xc2\x52\x5e\x17\xfc\xbf\x59\xb1\x16\xb0\x5c\x57\xf9\x2c\xaf\x2b\x2d\x9e\x34\x2a\x17\xff\x4d\x61\x76\x11\x98\xde\x1c\x44\xd3\xd4\x4d\x1a\xef\xe2\x78\xc3\x1a\xf8\x27\x59\xbb\xb3\x28\xb8\xb4\xf3\x3d\x88\xa7\xb3\x4a\x16\x69\x68\x88\x37\x2b\x67\x8e\xab\x46\x56\x1a\x66\x39\x2b\x45\x6b\x43\x29\x24\x66\x42\x32\x62\x9d\x76\xe9\x6e\x07\xac\x28\xea\x47\x05\xba\x86\x92\x55\xe8\x4e\xd1\xd6\xda\x83\x8d\x39\xad\xad\xdd\xae\x95\xac\xee\x89\x43\xfc\x95\x15\x50\xd3\x36\x6a\xc4\x2a\xbb\x03\x48\x20\x03\x76\x62\xb2\x6f\xf1\xd8\xb7\xe4\x9c\x5c\xac\xc2\xa1\x8e\x8a\x65\xdd\x38\xae\xb2\x18\xf7\x1b\x59\x39\xcb\x2d\xb1\x73\x20\xdb\xc7\x7f\xb4\x82\x2c\xcb\x46\xc9\x4a\xa1\x4f\x12\x7a\x8f\x12\x85\xf9\x97\xde\xc0\x36\x8e\xac\x5b\x79\xed\xe0\x98\xcf\xe3\x28\xaa\x57\xaf\x7d\x88\xd6\x2b\xfc\xa8\x9f\x83\xaf\x03\x2f\x8c\x73\x02\xcb\x7c\x0d\x25\xfb\x24\x66\x23\xf6\x99\xce\xe3\x68\x17\x47\xc8\xfc\x3f\x89\x1b\x24\xce\x98\x2b\xb1\xb6\x25\x1a\xf4\xac\x4c\x69\x5e\x23\xf4\xba\xa9\xa0\x8c\xad\xbb\xb6\x0b\x0c\x34\x92\x47\xa9\x1f\x92\x96\x8e\xe4\xfa\xca\x47\x05\x4e\x45\x2f\x2a\xb4\x22\xf5\x4b\x0e\x4b\x32\x10\xca\x11\x3a\x38\x58\xe1\x77\x4b\x66\x92\x43\xdf\x79\xa6\x13\x38\xd8\xb6\x24\x12\x22\xca\x81\x02\x52\xe2\x08\xcd\x61\x86\x66\x2b\x9a\xc6\x58\x09\xfe\x52\x57\xb9\x00\xcc\x19\xb2\x9b\x2a\x17\xf8\x65\x43\xd6\x16\x9a\x55\x1c\x45\x69\x1c\x45\x65\xd6\x5a\xe3\xa5\xb5\x47\xfd\x04\xc7\xda\x24\x51\x41\x07\x66\x57\xf5\x8c\x96\xdb\x6f\x91\x5c\x42\x99\x91\xd1\x9b\xdf\x89\xc6\x4b\x58\x96\x3a\xfb\x09\xd7\x2e\x67\xc9\xef\x6b\xd1\x3c\xa3\x95\xd4\x05\x07\xa2\x51\xc1\xaa\x56\xba\x03\xb3\x54\x50\xd5\xda\xd8\x9d\xe0\x49\x4a\x3b\xed\x8c\xd7\xb3\xdb\xd2\x3a\xa2\x07\x2e\xa1\xcc\xde\x16\x52\x54\x7a\x96\x66\x01\xbd\xd9\x2f\x42\x23\x63\x73\x90\xdc\x6e\x82\xff\xdf\xa5\xc6\xe7\x91\xa4\xbb\x8d\x62\x33\x5c\x66\x93\x51\xf0\x12\xfe\x22\x39\x22\xc9\xc3\xcf\x04\x7c\xa6\x91\x83\x5c\x87\x59\xc7\x41\x08\x61\x90\xef\xe9\xf1\x33\x21\x34\xa2\xff\x93\x74\x6f\xcf\x40\xc2\xe6\x50\xc9\xe2\x28\xd9\xe1\xec\xec\xfa\xca\x0a\x70\xb1\x00\xa3\x35\x30\x9b\x29\x60\xe4\xd2\x7e\x43\x3f\x6f\x46\x7e\x83\x65\x53\x97\xa1\x70\xe0\x3a\x94\x16\x3c\x32\x85\x7b\x89\x27\x91\xaf\xb5\xe0\x98\x0b\x31\xd0\x0d\xab\x14\x23\x1f\x0c\x33\xdc\xf0\xf6\x29\x9d\x87\xdf\x59\x01\xb9\x39\x5f\x2a\x4b\x02\x56\x17\x24\xfb\x59\xd9\xcf\x9f\x52\x70\x10\x83\x0b\x4b\x36\xa6\x52\xe6\x27\xf4\x88\xe6\xe3\xd6\x79\xc1\x32\x33\x3f\xed\xdc\xa4\x4c\x56\x52\xcf\xd2\x56\x3d\xe6\xab\x15\xc4\xed\x53\x27\x84\xca\x48\xe0\xf6\xe9\x37\x72\xea\x8e\x06\x65\x52\xc2\x47\xd1\x88\x80\x57\x8f\x23\xf5\x23\xee\x25\xb5\xbf\x17\x29\x0d\x6a\xfd\x20\x9a\x47\xa9\xc4\x1e\xfe\x6e\x9f\x66\xa8\xf4\xdb\x27\x5f\xd3\x72\x09\x11\x7a\xd6\x4f\xc8\x63\x99\xf1\x46\x6e\x44\x93\xcd\x2e\xf4\xd3\x15\xfd\x98\xfe\x08\xdf\xd4\x9f\x08\x13\x0e\x12\xb2\x98\x07\xe6\xee\x0a\xa2\xdd\xee\xf5\xc0\xc2\x9b\x75\x55\xa1\x27\xe8\xeb\x2c\x31\xfe\x5a\x3f\x91\x68\x6f\x9f\xc6\xc4\xaa\x9f\xfa\x22\x45\x43\x47\x2c\x92\x75\x9a\xc4\x8c\xa0\xf8\xab\x12\xcd\x15\x15\x6b\x26\x27\x59\x2c\xe0\xbd\xd0\xd7\x57\x9d\x4d\x1a\x4f\x69\xed\xd0\xb9\xf6\x0c\xde\xd5\x94\x7d\x33\x3d\xa7\x3a\x90\x56\x76\x29\xba\x54\xc0\xf2\x5c\xac\x50\x11\x75\x55\x3c\x43\x5d\xf5\x0c\x9b\x22\x35\x59\x74\xe4\xc4\x3e\x34\x47\x22\x65\x22\x4a\x1c\xe9\x8e\xfc\xca\x6e\xb1\x80\xeb\xab\x16\x01\x96\x1f\xc3\x9f\xad\x12\x3a\x53\x0a\xf8\xc3\x89\x84\x1f\x05\x6c\xc3\x64\xc1\xee\x0a\x61\xf8\x92\x4b\x04\xd5\x23\x53\xb0\x6a\xea\x8d\xe4\x82\x63\x2e\x84\x2b\xee\x0c\x45\x1d\xaa\x86\xec\x5d\x5f\x21\xac\x46\xd8\x9b\x83\x78\x92\x4a\x2b\xca\x0e\x1d\xd8\xf6\x71\x7b\x89\xca\xf5\xa0\xe6\x87\xf4\x8b\xe9\x85\x73\xd0\xcd\x5a\x58\x97\x3d\x5d\xb0\x10\x4c\x29\x7d\x10\xb9\x40\x68\xb7\x95\xc8\x7b\xca\x39\x30\xcb\xd9\xa2\x28\xc4\xef\x38\x31\x29\x13\x72\xb7\xb4\xea\x12\x12\x92\xb0\xfb\xd4\x25\xc2\xf0\x8a\x24\xd3\x25\x19\xef\x85\x4e\x70\xe7\xf7\x94\xc1\x38\x1a\xcd\x54\x53\x6d\xb7\x73\xbd\xfa\x3d\xc9\x12\x5b\x08\x29\xcd\x2a\xed\x50\xdc\xee\xef\xc7\x17\x53\xfc\x38\x08\x1a\x24\xef\xc3\x9f\xb7\xc9\xcc\xb0\x63\xf9\x5a\x8e\x01\x71\x58\x6d\xd9\x6c\x70\xd5\x55\x44\x8b\x0b\xa4\x46\xa3\xd0\x2a\x5b\xc5\x51\xf2\x5b\x6f\x44\xd3\x48\x2e\x60\xd5\x88\x8d\xac\xd7\x0a\x72\x56\x14\x94\x58\xbf\xe1\x3c\x03\xba\x59\x69\x8b\xaa\xd3\x8a\xc1\x32\x9b\x2c\x07\x2f\x6d\x80\xf2\xcb\x92\x5d\xdc\x09\xb0\x2d\x2a\x7e\x11\xda\x94\xe4\x9d\xed\x84\xc2\x1c\x37\xa3\x83\xc2\xed\x1d\x80\xf6\xd0\x84\x12\x1e\xda\x42\xb4\x31\x1e\x77\x94\xa5\x98\xf2\xac\x8d\x6f\x12\xad\x4d\x50\x1c\x76\x56\xb1\xb1\xe0\x9f\xe4\xf7\xc6\x88\xc8\x67\xd9\xe5\x27\x7d\xb6\xad\x77\x0c\x13\x2c\xda\xf5\x7a\x64\x04\xea\xbb\xff\x11\x39\x79\x8d\xea\x5f\xf4\x94\xe3\x30\x7e\xc7\x4e\x95\x0a\x96\x42\xe7\x0f\x82\xd3\xae\x6d\xe8\xe7\x4c\xb3\x3b\x86\xb1\x0b\x3f\xbf\x71\x31\xcd\x8b\xda\x08\x97\x20\x27\x08\x9c\x34\x06\x9a\xf6\x8e\x68\x0e\x75\xd3\xee\x08\x94\x8a\xc2\x92\xc9\x42\x9d\xa6\x46\x23\xb7\x89\xa4\x79\x03\xc6\x53\xa0\x08\x65\x61\x1c\xe9\x6e\x77\xd1\x3a\x86\xbe\xea\x5d\x16\x6f\x14\x2f\x97\xf0\x4d\x99\xd5\xab\xec\x5a\xcd\xbc\xcb\xad\x30\xf1\xda\x0c\x63\xec\x98\x5e\xd1\x97\x9b\x24\xba\x8d\x50\xdd\xfd\x59\x2b\x24\x45\x19\xb6\x45\xd5\x61\x0f\xfc\xc7\x1f\xe0\xa7\x8f\x03\x0c\x1e\x4b\x5c\x23\x7e\x5f\xcb\x46\x50\x9a\x72\x7d\x65\xcb\xa9\x9e\x71\xb5\x94\xb9\xf3\x8c\xb8\xc8\x34\xdc\x27\xd4\x42\x6a\x88\xc7\xb1\x6f\x0e\x12\x34\x2c\x40\x28\xd3\x9a\xa0\xf3\x35\x7c\xfb\x98\xd0\xb1\x69\x68\x5d\xee\x7c\x6b\xa3\xa1\x47\xb7\x59\xf1\x8e\xee\x6f\x4f\x76\x67\x23\x81\xe3\x0d\xe7\xa3\x81\xa3\x1f\x07\x18\xe7\x0a\x5a\x3f\xae\xeb\xd0\x96\xb3\x38\x7a\x81\x50\xd0\xde\x7b\x2d\xb3\xbf\x33\xf5\x4b\xed\xdd\x60\xf9\xb7\x53\x51\xe8\x73\x2d\xbc\x26\xfd\xb4\xaf\xb8\xe8\x62\xcf\xc4\x7f\xbd\x04\x2f\xe2\x84\x85\xe1\xde\x38\xf0\x97\x60\x19\x69\xd3\x08\xf0\x0d\xe7\x82\x8f\xa9\x31\xf0\x8c\x06\x2a\x26\x0d\x67\x0a\x25\xdd\x39\xb4\x91\xa8\x6b\xb0\x2c\x95\x1f\x29\xf6\x08\x7f\x92\x86\xe3\xe2\x85\x0b\x18\x53\xec\x5b\xf9\x87\x41\xa3\x8b\x1a\xd1\xce\xb3\x97\x2e\x6e\x44\x26\x35\x69\xdb\x06\xad\x63\x33\x15\x27\x2b\x26\xf1\xfa\xb6\x10\xac\x39\x0a\xb1\x74\xd7\xd3\xcb\xc3\xcf\x04\xad\x15\xc5\x74\xaa\x62\x32\x81\xf3\x52\x8c\x63\x72\x8c\x1e\xe0\xcb\x2c\xb8\xc8\xfa\xd0\x65\x79\xbb\xdd\x47\xb8\x04\x77\x8f\xb5\x6d\xc1\xd8\x72\xd3\x66\x81\xa1\x00\x8d\x5c\x05\x4f\x46\x45\xe9\xd0\x6a\xe3\xa1\x81\x61\x08\x4d\x44\xae\x25\xea\x44\x80\x86\x82\x46\xe4\x19\x69\x7b\xf5\xe1\x1e\x6e\x3d\x78\xd5\x9f\x46\x81\xe5\xf8\xf6\x9c\xf0\x3f\x84\x12\xa3\xd9\x6e\x43\x03\xac\x28\x20\x7f\xc0\x94\x5e\xb9\xf4\x24\x09\xb8\x4d\x4e\xcc\x7f\x0f\x65\xba\x5d\x22\xf9\xa5\x13\x54\xcf\xc5\x86\xa6\x16\x71\xea\x94\xcd\x7a\xc2\x9e\x83\x2f\xed\x74\x90\xee\x7a\xb2\xf6\xea\xa0\x61\x4b\xc3\xdc\x3a\xe1\xe7\x84\x71\x42\x99\x35\x79\xaf\xc5\x61\xe7\x5c\x42\xa2\xb0\x9a\xa1\x0f\x7e\xc9\x23\xb9\xfa\x39\x70\x06\xb3\x15\x53\x39\x2b\x70\x55\x0a\x33\x25\xab\xfb\x75\xc1\x1a\xdc\x93\xf4\xf4\x07\x98\xf1\x14\x92\xeb\x2b\x35\x7d\xa6\xdb\x77\x7c\x5b\xf7\x8b\x70\x57\xfb\xe6\x02\xd7\xa3\xcd\x62\xc8\x6d\x63\x63\x5b\x8d\x01\xa1\xcb\xf6\x45\x6b\x29\x82\xdf\x0b\x17\x40\x6d\xef\xc3\x0d\xdd\x3d\x83\xe4\x86\x48\xcc\x2e\x7d\x42\x55\x7b\xe0\x41\xd4\x75\x84\xcc\x86\x0c\xd3\xfe\x36\x92\x4a\xee\x6e\xe9\xcd\xce\x30\xda\x8e\x31\xe0\x1d\x6b\x49\xb5\x2e\x71\xd8\xdc\xb1\x77\x08\xfd\xb8\xdd\x26\x82\x23\x2b\xfc\xf8\x31\xbd\x6d\x7b\x65\x3f\x4a\x6b\x77\x83\xdf\xc6\x1e\x4c\xc1\x64\x77\x7f\x8f\x3c\xef\x3d\xe3\x83\xe4\xea\x83\xfc\x38\x70\xa3\x51\xbf\x1d\xb5\x6b\xc3\x56\x28\x93\x3d\x41\x4b\x9c\x12\xb4\x8e\x45\xcd\x19\x61\x6c\x6f\x3f\xf0\xb2\x8b\xd1\xa3\x81\x43\x9c\x1f\x38\x88\x89\x90\x2f\x2f\x6e\x9c\x17\x26\x5c\xf3\x65\x2f\x53\x5e\x4e\x66\xc6\x43\x3d\xf4\x6e\xb6\x42\x0a\xe5\xa0\x7a\x38\x4c\xe8\xf0\x00\xef\xb6\x6a\x80\xda\xb1\xb4\x6b\x8f\xa5\x7c\x33\xcc\xb4\xdc\x45\xd5\x60\x72\x9b\x70\xf9\x89\x58\x17\x26\x5b\xcb\x6c\xaf\xa9\xb0\xaa\x6b\x60\x46\xba\x5e\x42\xf2\x6d\xf6\x83\x4a\x02\xc4\xa5\xdd\x82\x81\x43\x4e\xfe\x41\x0d\xdf\xe4\x28\x67\xdc\xa9\xc3\xf3\x9c\xa6\x63\x7c\x8e\xdb\x54\x87\xb5\xe2\x39\xc6\xce\xf5\x4d\x39\x3c\xa3\x81\xbd\x1d\xec\x9e\xcb\xda\x3f\xf7\x74\xcf\x35\xe1\x72\x0f\x9c\xf4\x41\xf2\xa1\xef\xea\xb9\xe1\x69\xa7\x78\x78\xf3\x71\xe7\x18\x0d\xcb\xb2\xd0\x7d\xf4\x31\xc2\x8f\x72\x87\xbe\x55\x5a\xba\x88\x58\x9b\xca\x9f\xee\x03\xaf\xaf\x94\xb1\x44\x05\x1f\x3e\xee\xd3\x3e\x49\x88\x77\x22\x3a\xa0\x5e\xdb\xa5\xe4\x0a\x2e\x81\xad\x56\xa2\xe2\x78\x46\xdb\x20\x1c\x35\x3e\x97\xa3\x4e\x3a\x25\xb5\xd7\x2b\xa9\xa1\x5b\xf2\xde\xbc\xf4\x50\x43\x0f\x98\xec\xad\x3c\xad\x65\xc5\x23\x7b\xee\x0e\x28\x44\x85\x04\xa7\xf0\xef\x97\xf0\x03\x5d\x5b\xac\xcd\x6a\x34\x3b\x35\xa7\xa4\xf4\xb9\x5e\x83\x7a\xa8\xd7\x05\x87\xb5\x12\x7b\xbd\xa9\xac\x94\x16\x8c\x67\x70\xad\x9d\x6f\xa3\x8b\x22\x92\x6a\xa5\x45\x83\x79\xe7\x5a\xb1\x7b\x81\xc6\xeb\xdd\xdc\xb9\xc7\x55\x0e\x45\xa7\xba\xd9\x63\xb4\x8b\x52\x9a\x32\x2e\xb9\xb4\x5a\x9f\xf0\xa7\x3f\xe2\x70\xe0\x80\x87\x3a\xbf\xf0\x94\xde\x33\xbc\x21\xaa\xce\x86\x93\x95\xd2\x6e\x17\x34\x2e\xe2\xb0\x3b\xf0\x4a\x7c\x6e\xcd\x23\xba\x9a\x07\xa1\x70\x56\xc9\x33\xe6\x0d\x83\x92\x67\x98\x55\x1e\xc8\x50\x96\xac\x20\x04\xf6\xc4\x7b\xd0\x07\x8f\xdd\xd8\xfb\x25\x0c\xbd\x47\x0c\xaf\xad\xdb\x2b\xdf\xaa\x7b\x03\x33\xca\xfd\xcd\x6a\x86\xff\xf3\x5a\xe5\x65\x56\xaf\x5c\x27\x16\xe1\xe7\xef\x5b\xb9\xe7\x84\xed\x6b\xd0\x76\xb3\x59\x70\xe3\x9d\xee\x3b\x13\xb7\x9d\xa5\xf6\x9d\x5d\x70\xb2\x7e\x76\x47\xdb\x66\x54\xdb\xbc\x2d\x0a\x53\xbd\xfa\x9d\x5f\xa3\x79\x0e\x7c\x4d\x0f\xf6\x16\x8b\x5e\x01\xef\xb7\xf4\x64\x05\x75\x43\xaf\x61\x6b\xb8\xb7\xc8\xb1\xfd\x18\x5c\x38\xd8\x5b\x56\x0b\x2e\xf2\x46\x94\xa2\xd2\x82\xcf\xa9\x39\x63\x6e\xa5\x0c\x65\xb3\xbd\x1c\xba\x39\xf0\xe1\x63\xc7\xa5\x3d\xe3\xb5\x0d\xaa\x6e\x68\x0e\xdf\x53\xbd\x5a\x88\x2a\xe8\xc2\xa5\x47\xbc\x2a\xfc\xee\xd4\x3e\x59\x97\xa1\xed\xbf\x72\xb4\xb4\xb6\x76\xbc\x9c\xa8\xab\x7b\x0f\xdc\xdc\x6b\x0b\x9a\xed\x6b\x72\xe4\xea\xb0\x5e\x02\xb3\x97\x32\x8f\x52\x3f\x98\x37\x9b\x72\x23\x1c\x66\x11\x7f\x0f\x02\x94\xc8\xeb\x8a\x53\x92\x29\x58\xd5\x76\x9d\xb8\xcc\xe9\xdd\x17\x69\x8c\xd4\x6e\xb7\x32\x0f\x20\xb0\x10\x55\x42\x53\x83\x03\x93\x75\xfc\xdd\x3e\x51\xb6\xf1\x47\xe5\x0f\xa2\x64\x07\x95\x38\x43\x62\x2c\x54\x53\xf3\x7a\xc2\x5e\xbd\xb7\x69\x2f\x0a\x80\x38\xe8\xa9\x47\x3d\x4a\x9d\x3f\x10\x37\x6d\x31\xba\x47\x9b\x67\xa9\x33\xca\x99\x12\x81\x56\x5e\xfb\x09\x76\xab\xeb\x7e\xd3\xad\x7f\xc1\x32\xae\x47\xf3\x7c\x81\xbc\x96\xf3\x33\x05\x1f\xea\xb3\xeb\x1c\xd4\xfe\x55\xdb\x48\xcf\xea\x05\x5a\x56\xb8\x47\x6d\x1e\xb5\x9b\x86\x95\xbd\x73\x6e\xdb\x58\xa8\xee\x25\x93\x85\xff\x7e\x65\xc4\xef\x59\x46\xc6\xba\x56\x73\x98\x54\x7a\xd7\x9a\x3a\x57\xeb\xd9\xd7\xd5\x76\xd7\x9b\x3b\x49\xe7\x5e\x83\x68\x5d\x7d\xaa\xea\xc7\xfe\x6b\x0e\xa3\xe2\x6f\x55\x62\x84\x95\x5a\x63\x7f\x2f\x6c\x5a\xd3\x7b\x4d\xb2\xb4\x2a\xf3\x0c\x1c\xb3\xac\xee\x6d\x0e\xbd\x5a\x32\xb8\xf0\x31\x24\x7d\xd3\xe5\xa1\xed\x92\x71\x9b\xd9\xe4\xfb\x31\x2c\x95\x52\x95\x0c\xe5\xdf\x6d\x81\xdf\xf7\x21\xc1\x91\xec\x5b\xfa\xdc\x92\xdd\x6a\x3e\xb5\xc4\x6d\xe3\xbe\x82\xbf\x80\x8f\x1e\xd7\xf2\xc6\xdd\x2c\x13\x69\xd9\x2c\x6c\x45\xd9\x34\xd0\xbd\x3f\x6a\x31\x11\x6a\x52\x3c\xad\x44\xae\x85\x11\x0a\x7c\x7b\x4b\x7a\xf1\x54\x69\xdf\xff\x19\x8d\xba\x0a\xa0\xcc\xde\x0b\x3d\xda\x8b\xd9\xf8\x6f\x07\x29\x4b\xe9\x5d\x35\x8d\x12\x71\x02\x9c\xbc\x80\x1b\xa4\x02\xee\x25\xc5\x48\xd8\x6e\x63\xb6\x75\x14\x5e\x14\xb7\x89\x42\xff\x9a\xff\x40\x17\x6a\x34\x96\x77\x4f\xaa\xfe\xce\x94\xbb\xef\x26\xe5\x6d\x58\xe3\xc8\x72\x0b\x8e\xf4\xfd\xa7\xf7\x60\xce\xf2\x21\xa7\x34\x1e\x8f\xce\x03\xc6\x4a\xe9\xe0\x97\x30\x33\xe8\xa5\xc0\x13\x08\xea\x63\x20\x4c\x45\xad\x78\x7a\x7d\xc8\x30\x6f\x8b\xdd\xd3\x89\x7d\x99\x86\x9f\x66\xf4\xd2\x0b\x93\x53\x0e\x32\x8c\x17\x49\x2f\x3a\xbe\x8e\xcc\x31\xc6\xf1\x76\x4e\x96\xf1\xb5\x90\x36\x11\xae\xba\x7c\x7f\x4f\x9b\x77\x3f\x9c\x8e\xc9\x57\x0c\x76\xcc\x8e\xf4\x10\xe0\xff\x45\x38\x72\x24\x1f\x1b\x8e\x5e\x32\xfb\xfc\xbf\xc6\xc5\xe1\x10\xd7\x0b\x72\x2f\x14\xe6\xac\xf7\xc2\x50\xf7\x86\x8f\xe3\x71\x93\x06\xd0\x1d\x6b\x70\x1f\x01\xd0\xc3\x81\x30\x88\x6c\xbd\x80\x68\x5e\x89\xfb\x7f\xa5\x15\xc6\x44\xfb\xba\x6a\x58\x27\x9b\x35\xb8\xfc\xd4\x08\x18\x1c\xb7\x2f\x06\x86\x7d\xd9\xcf\x0a\x82\xc3\x2e\xef\xe7\x04\x3a\x3a\xc1\xb2\x31\x0b\xc2\xd6\x9f\x28\xc6\xf9\x44\x7a\x7f\x01\xe0\x8a\xde\xae\xdc\x95\xcb\x91\x62\x77\xfa\x05\xc3\x81\xe2\xd6\x89\x25\x88\x3f\xae\x49\x35\xf9\x92\x01\x67\x7f\x8c\xbd\xf7\x0b\xbb\x0e\x99\xc6\x5e\x06\x8f\x58\xbe\x84\xbf\x3d\x08\xdb\x91\xd8\x1a\x78\xcd\x09\xec\x9e\xe9\x38\x5f\x0c\xb5\x53\xce\xb1\xcc\x88\xab\xe9\x68\xf9\x35\x9c\x93\xef\x62\x46\xbc\x13\x5d\xd7\xba\x5c\x8d\x4a\x40\xff\x86\xb6\x77\xf3\x0f\x8d\xb8\x67\x0d\x37\xfe\x88\x62\xa6\x81\x87\xd9\x7c\x04\x24\xd3\x08\x21\xd7\x76\x2a\x48\x3a\x62\xf7\x80\xe4\xcf\x76\xb1\xd3\x2f\xf1\xdd\x05\xb9\x85\x40\x80\x80\x17\xd1\xf9\xbe\xca\xcc\xbc\x94\xf1\x83\x10\xf5\x3b\x71\x9e\x1f\x7f\x94\xd0\x0b\xf3\x3e\xd0\x7a\x28\xdc\xe0\xe8\xfa\x8b\x0e\xe9\x85\x1e\xea\xef\x1c\xba\x49\x75\xef\x78\xd2\x43\x7f\xb8\x7c\x64\xd7\xfa\x18\x35\x8a\xbe\x1a\x0d\xa5\x6d\x6c\xb1\x8d\xa9\xe3\xae\x51\x69\xb2\x2f\x6f\xbf\xb9\x86\xd2\x96\x5c\xc1\x4c\xd7\xe6\x2f\x9a\xcc\x5f\xbf\xa7\x9e\xdc\x8d\xcc\x97\x75\x63\xca\x18\xe7\x7e\x5b\x1d\x1d\x14\xfd\xf5\x95\x0a\x4d\xe3\xc3\xc7\x36\x05\xed\x1b\x88\x27\xcf\x3d\xf6\x31\x22\xfd\xf3\xe4\x3a\x61\x1e\x53\xdd\xe7\x33\x5a\x64\xad\x31\x79\x4c\x6f\x2f\x24\xdf\xf9\x19\x63\xbf\x45\x4d\xdd\xaf\x0e\x97\x5e\x29\xf7\xfd\x9c\xda\x95\x13\xc7\xa7\xd6\x83\x9f\xd6\x6a\xdb\xd3\x6c\x6b\x53\x5a\xcb\x84\xc4\x8c\xe4\xbc\x92\xca\x22\xd0\x76\xc0\x8f\xb4\xf9\xb6\xef\x7d\x9a\xc5\xfb\x87\x7c\x51\x9b\xb7\x40\xe9\x3f\x58\x3b\xee\x09\x45\x80\x93\xb3\xe0\x7b\xa4\x5f\x18\x3c\xdf\x3a\xe0\x25\xac\xf8\x4e\xf4\x13\x4e\x57\xe7\x79\x8a\xee\xcc\xaf\xe4\x2b\x26\xd4\x76\xa6\x22\xa6\xd2\xad\xc3\x86\xbc\x0f\x22\xd3\xf6\x7c\xc4\x83\x8c\xd3\xcd\xfa\x7c\xab\xb6\x25\xc0\x91\x56\xdd\xab\x34\x8e\xb5\x6a\xff\x90\xaf\x61\xd5\xa3\x16\xbd\xb7\x39\xff\xe7\x33\x65\xe4\xea\x94\x8a\x90\xf4\xf5\x19\x05\xa1\x77\xde\x78\x3d\xf8\xa2\x06\xfc\x85\x8d\xf7\xd8\xe7\x95\xa7\xd7\x48\xde\xe5\x22\x49\x0b\x79\x7b\x89\x7a\xb7\x35\xb7\xcf\xab\x79\x91\x9c\x23\xaa\x99\x3f\xbb\xfe\xbc\x5a\xb7\xff\x5a\xea\x6b\xd5\xba\xde\x4b\xb2\x61\xf5\x43\x55\x17\xa9\xfe\xfc\x32\xb7\x0b\xae\xfb\xaa\x5c\x9a\xf5\xb9\x45\xee\x57\x41\xc5\x4b\xa5\xf0\x2e\xe5\xfd\x6a\x15\xee\x50\xc5\xde\xe3\xaa\xee\xc7\xff\x0d\x00\x00\xff\xff\x2e\xac\xbd\xa8\xa9\x4f\x00\x00") +var _templateBuilderMutationTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xd4\x5b\x5b\x73\xdc\x36\x96\x7e\x26\x7f\xc5\x09\xcb\x99\x6d\x6a\x3b\xec\x64\xde\xd6\x59\x3d\x78\xac\x24\xa3\xaa\x5d\x6b\x6b\xac\xec\x8b\xcb\x35\x81\x08\xb4\x84\x35\x2f\x1d\x02\xdd\x92\xaa\xd3\xff\x7d\xeb\x1c\x00\x24\xc0\x4b\xdf\x2c\x7b\xb3\x79\x88\x25\x12\x04\xce\xe5\x3b\x77\x68\xbb\x5d\x5c\xc4\x6f\xeb\xd5\x73\x23\xef\x1f\x34\xfc\xf5\xfb\x1f\xfe\xed\xbb\x55\x23\x94\xa8\x34\xfc\xcc\x72\x71\x57\xd7\x9f\xe0\xba\xca\x33\x78\x53\x14\x40\x8b\x14\xe0\xfb\x66\x23\x78\x16\xdf\x3e\x48\x05\xaa\x5e\x37\xb9\x80\xbc\xe6\x02\xa4\x82\x42\xe6\xa2\x52\x82\xc3\xba\xe2\xa2\x01\xfd\x20\xe0\xcd\x8a\xe5\x0f\x02\xfe\x9a\x7d\xef\xde\xc2\xb2\x5e\x57\x3c\x96\x15\xbd\xff\x8f\xeb\xb7\x3f\xbd\x7b\xff\x13\x2c\x65\x21\xc0\x3e\x6b\xea\x5a\x03\x97\x8d\xc8\x75\xdd\x3c\x43\xbd\x04\xed\x1d\xa6\x1b\x21\xb2\xf8\x62\xb1\xdb\xc5\xf1\x76\x0b\x5c\x2c\x65\x25\x20\x29\xd7\x9a\x69\x59\x57\x09\xd8\x17\xaf\x56\x9f\xee\xe1\xf5\x25\xdc\x31\x25\xe0\x55\xf6\xb6\xae\x96\xf2\x3e\xfb\x2f\x96\x7f\x62\xf7\x02\x17\x6d\xb7\xa0\x45\xb9\x2a\x98\x16\x90\x3c\x08\xc6\x45\x93\xc0\x2b\xfa\x5c\x96\xab\xba\xd1\x30\x8b\xa3\x44\x3d\x57\x79\x12\xc7\xd1\x76\xfb\x1d\x34\xac\xba\x17\xf0\xaa\xc2\x6d\x5f\x65\xef\x6a\x2e\x14\x2e\x8f\xa2\x04\xcf\x1b\x1e\xb1\xc0\xc7\x95\xf7\x20\x31\xfb\x88\x8a\xd3\x31\x51\x72\x2f\xf5\xc3\xfa\x2e\xcb\xeb\x72\xb1\xb4\x32\x97\x55\xbe\xbe\x63\xba\x6e\x16\xa2\xd2\x49\x9c\xc6\x71\x5e\x57\x8a\x88\x59\x2c\xe0\x66\x25\x1a\xe2\x13\xf4\xf3\x4a\xa8\x2c\x8e\x6e\x56\x6f\x1b\x81\x3c\x00\xc0\x25\x88\x4a\x67\xee\x09\xbe\xbb\x12\x85\x08\xdf\x99\x27\xdd\xbb\x9b\x4a\xf4\xde\xdd\x54\xf4\xfa\xd7\x15\xef\x6d\x6b\x9e\x74\xef\xfc\x4f\xdb\x27\x31\xd1\x89\xc2\x69\x49\xdc\x2b\xbb\xdb\xe7\x95\x30\x72\x7a\xc7\x4a\x14\x12\x5c\x42\x12\x3c\x08\xa5\x96\x92\x76\x27\xb6\x23\xc5\x3b\x28\xd0\xbb\x2a\xfb\x4f\xfb\xab\xdd\x2d\x5e\x2c\x20\x58\xb5\xdb\x41\x23\x2c\xf2\x15\xb0\x0a\xea\x4e\xc6\x0f\x4c\x03\x2d\x14\x84\xcc\xed\x16\x56\xc5\xba\x61\x85\x47\x1d\xee\x57\xd1\xf9\x16\xbe\xf7\x0d\x5b\x3d\x64\x31\x32\x3f\x38\x48\xe9\x66\x9d\x6b\xd8\xc6\x51\x4e\x60\x89\xa3\x7a\x05\x37\xab\x38\xd2\xcf\x2b\x7c\x29\xab\x7b\x64\x16\xb7\xbf\xbe\xca\xfe\xb6\x96\x05\x17\xcd\xcf\x52\x14\xc8\x3a\x5c\xb4\x6f\x50\x68\x24\x3e\x4f\xb4\x4b\xcb\x2f\x2d\xb7\xc2\xc5\x0f\x96\xe3\xfb\x2c\xbb\x4d\x68\x17\xb9\x04\x56\x71\xf7\x3c\x7b\xb7\x2e\x45\x23\x73\xfc\xfd\x6d\x5d\x6d\x44\xa3\x05\xbf\xad\xff\xc6\x94\xcc\xcd\x37\x11\xe3\xfc\x84\xed\xad\xf6\x82\x9f\xf3\x42\xb0\x46\x70\x4b\x70\xc9\x56\x1f\x8c\x08\x3e\x1a\x31\x6d\x43\xfe\x84\xe5\xef\x27\x7e\x2f\x54\x40\xf7\x2b\x91\xfd\x5a\xc9\xdf\xd7\x74\x1c\x78\xff\x21\x21\x62\x9c\x3e\x61\xd8\xf4\x65\x19\x39\x82\xc6\x3f\xbb\xab\xeb\xc2\x31\x53\xa8\x23\xcf\x42\xa6\x46\x8f\xf3\x78\x8c\xa2\x46\x94\xf5\x66\xea\xdc\xa3\xb6\x98\x12\x31\xaf\x2b\x61\x29\xaf\x0b\xfe\xdf\xac\x58\x0b\x58\xae\xab\x7c\x96\xd7\x95\x16\x4f\x1a\x95\x8b\xff\xa6\x30\xbb\x08\x8c\x6e\x0e\xa2\x69\xea\x26\x8d\x77\x71\xbc\x61\x0d\xfc\x93\xec\xdc\xd9\x12\x5c\xda\xf5\x1e\xb8\xd3\x59\x25\x8b\x34\x34\xc1\x9b\x95\x33\xc4\x55\x23\x2b\x0d\xb3\x9c\x95\xa2\xb5\x9e\x14\x12\xb3\x20\x19\xb1\x4b\xfb\xe9\x6e\x07\xac\x28\xea\x47\x05\xba\x86\x92\x55\xe8\x48\xd1\xca\xda\x83\x8d\x21\xad\xad\xc5\xae\x95\xac\xee\x89\x43\xfc\x95\x15\x50\xd3\x36\x6a\xc4\x1e\xbb\x03\x48\x20\x03\x76\x62\xb2\x6c\xf1\xd8\xb7\xe1\x9c\x9c\xab\xc2\x57\x1d\x15\xcb\xba\x71\x5c\x65\x31\xee\x37\xf2\xe5\x2c\xb7\xc4\xce\x81\xac\x1e\xff\xd1\x0a\xb2\x2c\x1b\x25\x2b\x85\x3e\x49\xe8\x37\x4a\x14\xe6\x5f\x7a\x2f\xb6\x71\x64\x1d\xca\x6b\x07\xc7\x7c\x1e\x47\x51\xbd\x7a\xed\x43\xb4\x5e\xe1\x43\xfd\x1c\x3c\x1d\xf8\x5f\x5c\x13\x58\xe6\x6b\x28\xd9\x27\x31\x1b\xb1\xcf\x74\x1e\x47\xbb\x38\x42\xe6\xff\x49\xdc\x20\x71\xc6\x5c\x89\xb5\x2d\xd1\xa0\x67\x65\x4a\xeb\x1a\xa1\xd7\x4d\x05\x65\x6c\x1d\xb5\xfd\xc0\x40\x23\x79\x94\xfa\x21\x69\xe9\x48\xae\xaf\x7c\x54\xe0\x52\xf4\x9f\x42\x2b\x52\xbf\xe4\xb0\x24\x03\xa1\xec\xa0\x83\x83\x15\x7e\xf7\xc9\x4c\x72\xe8\xbb\xcd\x74\x02\x07\xdb\x96\x44\x42\x44\x39\x50\x40\x4a\x1c\xa1\x39\xcc\xd0\x6c\x45\xd3\x18\x2b\xc1\x5f\xea\x2a\x17\x80\xd9\x42\x76\x53\xe5\x02\x9f\x6c\xc8\xda\x42\xb3\x8a\xa3\x28\x8d\xa3\xa8\xcc\x5a\x6b\xbc\xb4\xf6\xa8\x9f\xe0\x58\x9b\x24\x2a\xe8\xc0\xec\xaa\x9e\xd1\xe7\xf6\x59\x24\x97\x50\x66\x64\xf4\xe6\x77\xa2\xf1\x12\x96\xa5\xce\x7e\xc2\x6f\x97\xb3\xe4\xf7\xb5\x68\x9e\xd1\x4a\xea\x82\x03\xd1\xa8\x60\x55\x2b\xdd\x81\x59\x2a\xa8\x6a\x6d\xec\x4e\xf0\x24\xa5\x9d\x76\xc6\xeb\xd9\x6d\xe9\x3b\xa2\x07\x2e\xa1\xcc\xde\x16\x52\x54\x7a\x96\x66\x01\xbd\xd9\x2f\x42\x23\x63\x73\x90\xdc\x6e\x82\xff\xdf\xa5\xc6\xe7\x91\xa4\xbb\x8d\x62\xf3\xba\xcc\x26\xe3\xdf\x25\xfc\x45\x72\x44\x92\x87\x9f\x09\xf8\x4c\x23\x07\xb9\x0e\xf3\x8d\x83\x10\xc2\xf0\xde\xd3\xe3\x67\x42\x68\x44\xff\x27\xe9\xde\x9e\x81\x84\xcd\xa1\x92\xc5\x51\xb2\xc3\xd5\xd9\xf5\x95\x15\xe0\x62\x01\x46\x6b\x60\x36\x53\xc0\xc8\xa5\xfd\x86\x7e\xde\xbc\xf9\x0d\x96\x4d\x5d\x86\xc2\x81\xeb\x50\x5a\xf0\xc8\x14\xee\x25\x9e\x44\xbe\xd6\x82\x63\x16\xc4\x40\x37\xac\x52\x8c\x7c\x30\xcc\x70\xc3\xdb\xa7\x74\x1e\x3e\x67\x05\xe4\xe6\x7c\xa9\x2c\x09\x58\x57\x90\xec\x67\x65\x3f\x73\x4a\xc1\x41\x0c\x2e\x2c\xd9\x98\x44\x99\x9f\xd0\x23\x9a\x87\x5b\xe7\x05\xcb\xcc\xfc\xb4\x73\x8b\x32\x59\x49\x3d\x4b\x5b\xf5\x98\xa7\x56\x10\xb7\x4f\x9d\x10\x2a\x23\x81\xdb\xa7\xdf\xc8\xa9\x3b\x1a\x94\x49\x06\x1f\x45\x23\x02\x5e\x3d\x8e\xd4\x8f\xb8\x97\xd4\xfe\x5e\xa4\x34\xa8\xf5\x83\x68\x1e\xa5\x12\x7b\xf8\xbb\x7d\x9a\xa1\xd2\x6f\x9f\x7c\x4d\xcb\x25\x44\xe8\x59\x3f\x21\x8f\x65\xc6\x1b\xb9\x11\x4d\x36\xbb\xd0\x4f\x57\xf4\x63\xfa\x23\x7c\x53\x7f\x22\x4c\x38\x48\xc8\x62\x1e\x98\xbb\x2b\x85\x76\xbb\xd7\x03\x0b\x6f\xd6\x55\x85\x9e\xa0\xaf\xb3\xc4\xf8\x6b\xfd\x44\xa2\xbd\x7d\x1a\x13\xab\x7e\xea\x8b\x14\x0d\x1d\xb1\x48\xd6\x69\x12\x33\x82\xe2\xaf\x4a\x34\x57\x54\xa6\x99\x9c\x64\xb1\x80\xf7\x42\x5f\x5f\x75\x36\x69\x3c\xa5\xb5\x43\xe7\xda\x33\x78\x57\x53\xde\xcd\xf4\x9c\x2a\x40\xfa\xb2\x4b\xce\xa5\x02\x96\xe7\x62\x85\x8a\xa8\xab\xe2\x19\xea\xaa\x67\xd8\x14\xa9\xc9\xa2\x23\x27\xf6\xa1\x39\x12\x29\x13\x51\xe2\x48\x77\xe4\xd7\x74\x8b\x05\x5c\x5f\xb5\x08\xb0\xfc\x18\xfe\x6c\x7d\xd0\x99\x52\xc0\x1f\x2e\x24\xfc\x28\x60\x1b\x26\x0b\x76\x57\x08\xc3\x97\x5c\x22\xa8\x1e\x99\x82\x55\x53\x6f\x24\x17\x1c\x73\x21\xfc\xe2\xce\x50\xd4\xa1\x6a\xc8\xde\xf5\x15\xc2\x6a\x84\xbd\x39\x88\x27\xa9\xb4\xa2\xec\xd0\x81\x6d\x1f\xb7\x97\xa8\x5c\x0f\x6a\x7e\x48\xbf\x98\xfe\x70\x0e\xba\x59\x0b\xeb\xb2\xa7\x4b\x15\x82\x29\xa5\x0f\x22\x17\x08\xed\xb6\x12\x79\x4f\x39\x07\x66\x39\x5b\x14\x85\xf8\x1d\x17\x26\x65\x42\xee\x96\xbe\xba\x84\x84\x24\xec\x1e\x75\x89\x30\xbc\x22\xc9\x74\x49\xc6\x7b\xa1\x13\xdc\xf9\x3d\x65\x30\x8e\x46\xb3\xd4\xd4\xd9\xed\x5a\xaf\x72\x4f\xb2\xc4\x16\x42\x4a\xb3\x4a\x3b\x14\xb7\xfb\xfb\xf1\xc5\x14\x3f\x0e\x82\x06\xc9\xfb\xf0\xe7\x6d\x32\x33\xec\x58\xbe\x96\x63\x40\x1c\x56\x5b\x36\x1b\x5c\x75\x15\xd1\xe2\x02\xa9\xd1\x28\xb4\xca\x56\x71\x94\xfc\xd6\x1b\xd1\x34\x92\x0b\x58\x35\x62\x23\xeb\xb5\x82\x9c\x15\x05\x25\xd6\x6f\x38\xcf\x80\x7a\x2a\x67\x16\x83\x65\x36\x59\x0e\x5e\xda\x00\xe5\x97\x25\xbb\xb8\x13\x60\x5b\x54\xfc\x22\xb4\x29\xc6\x3b\xdb\x09\x85\x39\x6e\x46\x07\x85\xdb\x3b\x00\xed\xa1\x09\x25\x3c\xb4\x85\x68\x63\x3c\xee\x28\x4b\x31\xe5\x59\x1b\xdf\x24\x5a\x9b\xa0\x38\xec\xac\x62\x63\xc1\x3f\xc9\xef\x8d\x11\x91\xcf\xb2\xcb\x4f\xfa\x6c\x5b\xef\x18\x26\x58\xb4\xeb\xf5\xc8\x1b\xa8\xef\xfe\x47\xe4\xe4\x35\xaa\x7f\xd1\x53\x8e\xc3\xf8\x1d\xbb\x54\x2a\x58\x0a\x9d\x3f\x08\x4e\xbb\xb6\xa1\x9f\x33\xcd\xee\x18\xc6\x2e\x7c\xfc\xc6\xc5\x34\x2f\x6a\x23\x5c\x82\x9c\x20\x70\xd2\x18\x68\xda\xee\xd0\x1c\xea\xa6\xdd\x11\x28\x15\x85\x25\x93\x85\x3a\x4d\x8d\x46\x6e\x13\x49\xf3\x06\x8c\xa7\x40\x11\xca\xc2\x38\xd2\xdd\xee\xa2\x75\x0c\x7d\xd5\xbb\x2c\xde\x28\x5e\x2e\xe1\x9b\x32\xab\x57\xd9\xb5\x9a\x79\x6d\xad\x30\xf1\xda\x0c\x63\xec\x98\x5e\xd1\x97\x9b\x24\xba\x8d\x50\x5d\xe7\xac\x15\x92\xa2\x0c\xdb\xa2\xea\xb0\x07\xfe\xe3\x0f\xf0\xd3\xc7\x01\x06\x8f\x25\xae\x11\xbf\xaf\x65\x23\x28\x4d\xb9\xbe\xb2\xe5\x54\xcf\xb8\x5a\xca\xdc\x79\x46\x5c\x64\x1a\xee\x11\x6a\x21\x35\xc4\xe3\xbb\x6f\x0e\x12\x34\x2c\x40\x28\xd3\x9a\xa0\xf3\x35\x7c\xfb\x98\xd0\xb1\x69\x68\x5d\xee\x7c\x6b\xa3\xa1\x47\xb7\x59\xf1\x8e\x3a\xb7\x27\xbb\xb3\x91\xc0\xf1\x86\xf3\xd1\xc0\xd1\x8f\x03\x8c\x73\x05\xad\x1f\xd7\x75\x68\xcb\x59\x1c\xbd\x40\x28\x68\xfb\x5e\xcb\xec\xef\x4c\xfd\x52\x7b\x1d\x2c\xbf\x3b\x15\x85\x3e\xd7\xc2\x6b\xd2\x4f\xfb\x8a\x8b\x2e\xf6\x2c\xfc\xd7\x4b\xf0\x22\x4e\x58\x18\xee\x8d\x03\x7f\x09\x3e\x23\x6d\x1a\x01\xbe\xe1\x5c\xf0\x31\x35\x06\x9e\xd1\x40\xc5\xa4\xe1\x4c\xa1\xa4\x3b\x87\x36\x12\x75\x0d\x96\xa5\xf2\x23\xc5\x1e\xe1\x4f\xd2\x70\x5c\xbc\x70\x01\x63\x8a\x7d\x2b\xff\x30\x68\x74\x51\x23\xda\x79\xf6\xd2\xc5\x8d\xc8\xa4\x26\xed\xc0\xa0\x75\x6c\xa6\xe2\x64\xc5\x24\x5e\xdf\x16\x82\x35\x47\x21\x96\x7a\x3d\xbd\x3c\xfc\x4c\xd0\x5a\x51\x4c\xa7\x2a\x26\x13\x38\x2f\xc5\x38\x26\xc7\xe8\x01\xbe\xcc\x82\x46\xd6\x87\x2e\xcb\xdb\xed\x3e\xc2\x25\xb8\x3e\xd6\xb6\x05\x63\xcb\x4d\x9b\x05\x86\x02\x34\x72\x15\x3c\x19\x15\xa5\x43\xab\x8d\x87\x06\x86\x21\x34\x11\xb9\x96\xa8\x13\x01\x1a\x0a\x1a\x91\x67\xa4\xed\xd5\x87\x7b\xb8\xf5\xe0\x55\x7f\x1a\x05\x96\xe3\xdb\x73\xc2\xff\x10\x4a\x8c\x66\xbb\x0d\xbd\x60\x45\x01\xf9\x03\xa6\xf4\xca\xa5\x27\x49\xc0\x6d\x72\x62\xfe\x7b\x28\xd3\xed\x12\xc9\x2f\x9d\xa0\x7a\x2e\x36\x34\xb5\x88\xd3\x8c\x6c\xd6\x13\xf6\x1c\x7c\x69\xa7\x83\x74\xd7\x93\xb5\x57\x07\x0d\x47\x1a\xa6\xeb\x84\x8f\x13\xc6\x09\x65\xd6\xe4\xbd\x11\x87\x5d\x73\x09\x89\xc2\x6a\x86\x1e\xf8\x25\x8f\xe4\xea\xe7\xc0\x19\xcc\x56\x4c\xe5\xac\xc0\xaf\x52\x98\x29\x59\xdd\xaf\x0b\xd6\xe0\x9e\xa4\xa7\x3f\xc0\xbc\x4f\x21\xb9\xbe\x52\xd3\x67\xba\x7d\xc7\xb7\x75\xbf\x08\xd7\xda\x37\x0d\x5c\x8f\x36\x8b\x21\xb7\x8d\x8d\x6d\x35\x06\x84\x2e\xdb\x17\xad\xa5\x08\x7e\x2f\x5c\x00\xb5\xb3\x0f\xf7\xea\xee\x19\x24\x37\x44\x62\x76\xe9\x13\xaa\xda\x03\x0f\xa2\xae\x23\x64\x36\x64\x98\xf6\xb7\x91\x54\x72\xd7\xa5\x37\x3b\xc3\xe8\x38\xc6\x80\x77\x6c\x24\xd5\xba\xc4\xe1\x70\xc7\xf6\x10\xfa\x71\xbb\x4d\x04\x47\xbe\xf0\xe3\xc7\xf4\xb6\x6d\xcb\x7e\x94\xd6\xae\x83\xdf\xc6\x1e\x4c\xc1\x64\xd7\xbf\x47\x9e\xf7\x9e\xf1\x41\x72\xf5\x41\x7e\x1c\xb8\xd1\xa8\x3f\x8e\xda\xb5\x61\x2b\x94\xc9\x9e\xa0\x25\x4e\x09\x5a\xc7\xa2\xe6\x8c\x30\xb6\x77\x1e\x78\xd9\xc5\xe8\xd1\xc0\x21\xce\x0f\x1c\xc4\x44\xc8\x97\x17\x37\xce\x0b\x13\x6e\xf8\xb2\x97\x29\x2f\x27\x33\xef\x43\x3d\xf4\x3a\x5b\x21\x85\x72\x50\x3d\x1c\x26\x74\x78\x80\xd7\xad\x1a\xa0\x76\x2c\xed\xda\x63\x29\xdf\x0c\x33\x2d\xd7\xa8\x1a\x2c\x6e\x13\x2e\x3f\x11\xeb\xc2\x64\x6b\x99\x6d\x9b\x0a\xab\xba\x06\x66\xa4\xeb\x25\x24\xdf\x66\x3f\xa8\x24\x40\x5c\xda\x7d\x30\x70\xc8\xc9\x3f\x68\xe0\x9b\x1c\xe5\x8c\x3b\x75\x78\x9e\xd3\x4c\x8c\xcf\x71\x9b\xea\xb0\x56\x3c\xc7\xd8\xb9\xbe\x29\x87\x67\x34\xb0\x77\x82\xdd\x73\x59\xfb\xd7\x9e\xee\xb9\x26\x5c\xee\x81\x93\x3e\x48\x3e\xf4\x5d\x3d\x37\x3c\xed\x14\x0f\x6f\x3e\xee\x1c\xa3\x61\x59\x16\xba\x8f\x3e\x46\xf8\x51\xee\xd0\xb7\x4a\x4b\x17\x11\x6b\x53\xf9\xd3\x7d\xe0\xf5\x95\x32\x96\xa8\xe0\xc3\xc7\x7d\xda\x27\x09\xf1\x4e\x44\x07\xd4\x6b\xa7\x94\x5c\xc1\x25\xb0\xd5\x4a\x54\x1c\xcf\x68\x07\x84\xa3\xc6\xe7\x72\xd4\x49\xa7\xa4\xf6\x7a\x25\x35\x74\x4b\xe6\xbe\xc6\x18\x6a\xe8\xea\x92\xed\xca\xd3\xb7\xac\x78\x64\xcf\xdd\x01\x85\xa8\x90\xe0\x14\xfe\xfd\x12\x7e\xa0\xb6\xc5\xda\x7c\x8d\x66\xa7\xe6\x94\x94\x3e\xd7\x6b\x50\x0f\xf5\xba\xe0\xb0\x56\x62\xaf\x37\x95\x95\xd2\x82\xf1\x0c\xae\xb5\xf3\x6d\xd4\x28\x22\xa9\x56\x5a\x34\x98\x77\xae\x15\xbb\x17\x68\xbc\x5e\xe7\xce\x5d\xab\x72\x28\x3a\xd5\xcd\x1e\xa3\x5d\x94\xd2\x94\x71\xc9\xa5\xd5\xfa\x84\x3f\xfd\x11\x5f\x07\x0e\x78\xa8\xf3\x0b\x4f\xe9\x3d\xc3\x1b\xa2\xea\x6c\x38\x59\x29\xed\x76\xc1\xe0\x22\x0e\xa7\x03\xaf\xc4\xe7\xd6\x3c\xa2\xab\x79\x10\x0a\x67\x95\x3c\x63\xde\x30\x28\x79\x86\x59\xe5\x81\x0c\x65\xc9\x0a\x42\x60\x4f\xbc\x07\x7d\xf0\x58\xc7\xde\x2f\x61\xe8\x26\x62\xd8\xb6\x6e\x5b\xbe\x55\x77\x07\x66\x94\xfb\x9b\xd5\x0c\xff\xe7\x8d\xca\xcb\xac\x5e\xb9\x49\x2c\xc2\xcf\xdf\xb7\x72\x17\x09\xdb\x7b\xa0\xed\x66\xb3\xa0\xe3\x9d\xee\x3b\x13\xb7\x9d\xa5\xf6\x86\x5d\x70\xb2\x7e\x76\x47\xdb\x61\x54\x3b\xbc\x2d\x0a\x53\xbd\xfa\x93\x5f\xa3\x79\x0e\x7c\x4d\x57\xf5\x16\x8b\x5e\x01\xef\x8f\xf4\x64\x05\x75\x43\xf7\x60\x6b\xb8\xb7\xc8\xb1\xf3\x18\xfc\x70\xb0\xb7\xac\x16\x5c\xe4\x8d\x28\x45\xa5\x05\x9f\xd3\x70\xc6\x74\xa5\x0c\x65\xb3\xbd\x1c\xba\x35\xf0\xe1\x63\xc7\xa5\x3d\xe3\xb5\x0d\xaa\xee\xd5\x1c\xbe\xa7\x7a\xb5\x10\x55\x30\x85\x4b\x8f\xb8\x4f\xf8\xdd\xa9\x73\xb2\x2e\x43\xdb\xdf\x72\xb4\xb4\xb6\x76\xbc\x9c\xa8\xab\x7b\x17\xdc\xdc\x6d\x0b\x5a\xed\x6b\x72\xa4\x75\x58\x2f\x81\xd9\xa6\xcc\xa3\xd4\x0f\xe6\xb6\xa6\xdc\x08\x87\x59\xc4\xdf\x83\x00\x25\xf2\xba\xe2\x94\x64\x0a\x56\xb5\x53\x27\x2e\x73\xba\xf7\x45\x1a\x23\xb5\xdb\xad\xcc\x05\x08\x2c\x44\x95\xd0\x34\xe0\xc0\x64\x1d\x7f\xb7\x97\x93\x6d\xfc\x51\xf9\x83\x28\xd9\x41\x25\xce\x90\x18\x0b\xd5\xd4\xdc\x9e\xb0\xad\xf7\x36\xed\x45\x01\x10\x07\x3d\xf5\xa8\x47\xa9\xf3\x07\xe2\xa6\x2d\x46\xf7\x68\xf3\x2c\x75\x46\x39\x53\x22\xd0\xca\x6b\x3f\xc1\x6e\x75\xdd\x1f\xba\xf5\x1b\x2c\xe3\x7a\x34\xd7\x17\xc8\x6b\x39\x3f\x53\xf0\xa1\x3e\xbb\xc9\x41\xed\xb7\xda\x46\x66\x56\x2f\x30\xb2\xc2\x3d\x6a\x73\x9d\xdd\x0c\xac\x6c\xcf\xb9\x1d\x63\xa1\xba\x97\x4c\x16\xfe\xfd\x95\x11\xbf\x67\x19\x19\x9b\x5a\xcd\x61\x52\xe9\xdd\x68\xea\x5c\xad\x67\x5f\x57\xdb\xdd\x6c\xee\x24\x9d\x7b\x03\xa2\x75\xf5\xa9\xaa\x1f\xfb\xb7\x39\x8c\x8a\xbf\x55\x89\x11\x56\x6a\x8d\xfd\xbd\xb0\x69\x4d\xef\x36\xc9\xd2\xaa\xcc\x33\x70\xcc\xb2\xba\xbb\x39\x74\x6b\xc9\xe0\xc2\xc7\x90\xf4\x4d\x97\x87\xb6\x4b\xc6\x6d\x56\x93\xef\xc7\xb0\x54\x4a\x55\x32\x94\x7f\xb7\x05\x3e\xdf\x87\x04\x47\xb2\x6f\xe9\x73\x4b\x76\xab\xf9\xd4\x12\xb7\x8d\xfb\x0a\xfe\x02\x3e\x7a\x5c\xcb\x1b\xd7\x59\x26\xd2\xb2\x59\x38\x8a\xb2\x69\xa0\xbb\x7f\xd4\x62\x22\xd4\xa4\x78\x5a\x89\x5c\x0b\x23\x14\xf8\xf6\x96\xf4\xe2\xa9\xd2\xde\xff\x33\x1a\x75\x15\x40\x99\xbd\x17\x7a\x74\x16\xb3\xf1\xef\x0e\x52\x96\xd2\x6b\x35\x8d\x12\x71\x02\x9c\xbc\x80\x1b\xa4\x02\xee\x26\xc5\x48\xd8\x6e\x63\xb6\x75\x14\x5e\x14\xb7\x89\x42\xbf\xcd\x7f\x60\x0a\x35\x1a\xcb\xbb\x2b\x55\x7f\x67\xca\xf5\xbb\x49\x79\x1b\xd6\x38\xb2\xdc\x07\x47\xfa\xfe\xd3\x67\x30\x67\xf9\x90\x53\x06\x8f\x47\xe7\x01\x63\xa5\x74\xf0\x4b\x98\x19\xf4\x52\xe0\x09\x04\xf5\x31\x10\xa6\xa2\x56\x3c\xbd\x39\x64\x98\xb7\xc5\xee\xea\xc4\xbe\x4c\xc3\x4f\x33\x7a\xe9\x85\xc9\x29\x07\x19\xc6\x8b\xa4\x17\x1d\x5f\x47\xe6\x18\xe3\x78\x3b\x27\xcb\xf8\x5a\x48\x9b\x08\x57\x5d\xbe\xbf\x67\xcc\xbb\x1f\x4e\xc7\xe4\x2b\x06\x3b\x66\x47\xba\x08\xf0\xff\x22\x1c\x39\x92\x8f\x0d\x47\x2f\x99\x7d\xfe\x5f\xe3\xe2\x70\x88\xeb\x05\xb9\x17\x0a\x73\xd6\x7b\x61\xa8\x7b\xc3\xc7\xf1\xb8\x49\x03\xe8\x8e\x0d\xb8\x8f\x00\xe8\xe1\x40\x18\x44\xb6\x5e\x40\x34\xb7\xc4\xfd\xbf\xd2\x0a\x63\xa2\xbd\x5d\x35\xac\x93\xcd\x37\xf8\xf9\xa9\x11\x30\x38\x6e\x5f\x0c\x0c\xe7\xb2\x9f\x15\x04\x87\x53\xde\xcf\x09\x74\x74\x82\x65\x63\x16\x84\xad\x3f\x51\x8c\xf3\x89\xf4\xfe\x02\xc0\x15\xbd\x5d\xb9\x2b\x97\x23\xc5\xee\xf4\x0d\x86\x03\xc5\xad\x13\x4b\x10\x7f\xdc\x90\x6a\xf2\x26\x03\xae\xfe\x18\x7b\xf7\x17\x76\x1d\x32\x8d\xbd\x0c\x2e\xb1\x7c\x09\x7f\x7b\x10\xb6\x23\xb1\x35\xf0\x9a\x13\xd8\x3d\xd3\x71\xbe\x18\x6a\xa7\x9c\x63\x99\x11\x57\xd3\xd1\xf2\x6b\x38\x27\xdf\xc5\x8c\x78\x27\x6a\xd7\xba\x5c\x8d\x4a\x40\xbf\x43\xdb\xeb\xfc\x43\x23\xee\x59\xc3\x8d\x3f\xa2\x98\x69\xe0\x61\x36\x1f\x01\xc9\x34\x42\xc8\xb5\x9d\x0a\x92\x8e\xd8\x3d\x20\xf9\xb3\x35\x76\xfa\x25\xbe\x6b\x90\x5b\x08\x04\x08\x78\x11\x9d\xef\xab\xcc\xcc\x4d\x19\x3f\x08\xd1\xbc\x13\xd7\xf9\xf1\x47\x09\xbd\x30\xf7\x03\xad\x87\xc2\x0d\x8e\xae\xbf\xe8\x90\x5e\xe8\xa1\xf9\xce\xa1\x4e\xaa\xbb\xc7\x93\x1e\xfa\xc3\xe5\x23\xa7\xd6\xc7\xa8\x51\xf4\xd5\x68\x28\x6d\x63\x8b\x1d\x4c\x1d\xd7\x46\xa5\xc5\xbe\xbc\xfd\xe1\x1a\x4a\x5b\x72\x05\x33\x5d\x9b\xbf\x68\x32\x7f\xf7\x9e\x7a\x72\x37\x32\x5f\xd6\x8d\x29\x63\x9c\xfb\x6d\x75\x74\x50\xf4\xd7\x57\x2a\x34\x8d\x0f\x1f\xdb\x14\xb4\x6f\x20\x9e\x3c\xf7\xd8\xc7\x88\xf4\xcf\x93\xeb\x84\x79\x4c\x4d\x9f\xcf\x18\x91\xb5\xc6\xe4\x31\xbd\xbd\x90\x7c\xe7\x67\x8c\xfd\x11\x35\x4d\xbf\x3a\x5c\x7a\xa5\xdc\xf7\x73\x1a\x57\x4e\x1c\x9f\x5a\x0f\x7e\xda\xa8\x6d\xcf\xb0\xad\x4d\x69\x2d\x13\x12\x33\x92\xf3\x4a\x2a\x8b\x40\x3b\x01\x3f\xd2\xe6\xdb\xb9\xf7\x69\x16\xef\x1f\xf2\x45\x6d\xde\x02\xa5\x7f\x61\xed\xb8\x2b\x14\x01\x4e\xce\x82\xef\x91\x7e\x61\x70\x7d\xeb\x80\x97\xb0\xe2\x3b\xd1\x4f\x38\x5d\x9d\xe7\x29\xba\x33\xbf\x92\xaf\x98\x50\xdb\x99\x8a\x98\x4a\xb7\x0e\x1b\xf2\x3e\x88\x4c\xdb\xf3\x11\x17\x32\x4e\x37\xeb\xf3\xad\xda\x96\x00\x47\x5a\x75\xaf\xd2\x38\xd6\xaa\xfd\x43\xbe\x86\x55\x8f\x5a\xf4\xde\xe1\xfc\x9f\xcf\x94\x91\xab\x53\x2a\x42\xd2\xd7\x67\x14\x84\xde\x79\xe3\xf5\xe0\x8b\x1a\xf0\x17\x36\xde\x63\xaf\x57\x9e\x5e\x23\x79\xcd\x45\x92\x16\xf2\xf6\x12\xf5\x6e\x6b\x6e\x9f\x57\xf3\x22\x39\x47\x54\x33\x7f\x76\xfd\x79\xb5\x6e\xff\xb6\xd4\xd7\xaa\x75\xbd\x9b\x64\xc3\xea\x87\xaa\x2e\x52\xfd\xf9\x65\x6e\x17\x5c\xf7\x55\xb9\xb4\xea\x73\x8b\xdc\xaf\x82\x8a\x97\x4a\xe1\x5d\xca\xfb\xd5\x2a\xdc\xa1\x8a\xbd\xcb\x55\xdd\x8f\xff\x1b\x00\x00\xff\xff\xb8\xb1\xc5\x90\xa3\x4f\x00\x00") func templateBuilderMutationTmplBytes() ([]byte, error) { return bindataRead( @@ -201,7 +201,7 @@ func templateBuilderMutationTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/builder/mutation.tmpl", size: 20393, mode: os.FileMode(420), modTime: time.Unix(1, 0)} + info := bindataFileInfo{name: "template/builder/mutation.tmpl", size: 20387, mode: os.FileMode(420), modTime: time.Unix(1, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -226,7 +226,7 @@ func templateBuilderQueryTmpl() (*asset, error) { return a, nil } -var _templateBuilderSetterTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x57\x5d\x6f\xdb\x36\x17\xbe\xb6\x7e\xc5\x79\x05\xbf\x80\x6c\x34\x74\xdb\xbb\x0d\xf0\x45\x1a\xb7\x80\x81\x2d\x05\xe6\xe4\xaa\x28\x06\x46\x3c\x74\xb8\x2a\xa4\x4a\x52\xde\x02\x4d\xff\x7d\xe0\x87\x3e\x2c\x3b\x4e\x9c\x6e\x77\x32\xcf\x27\x9f\xf3\x9c\x73\xe8\xba\x5e\xcc\x93\x2b\x55\x3e\x6a\xb1\xbd\xb7\xf0\xfe\xed\xbb\x9f\x2e\x4a\x8d\x06\xa5\x85\x4f\x34\xc7\x3b\xa5\xbe\xc1\x5a\xe6\x04\x2e\x8b\x02\xbc\x92\x01\x27\xd7\x3b\x64\x24\xb9\xb9\x17\x06\x8c\xaa\x74\x8e\x90\x2b\x86\x20\x0c\x14\x22\x47\x69\x90\x41\x25\x19\x6a\xb0\xf7\x08\x97\x25\xcd\xef\x11\xde\x93\xb7\xad\x14\xb8\xaa\x24\x4b\x84\xf4\xf2\x5f\xd6\x57\x1f\xaf\x37\x1f\x81\x8b\x02\x21\x9e\x69\xa5\x2c\x30\xa1\x31\xb7\x4a\x3f\x82\xe2\x60\x07\xc1\xac\x46\x24\xc9\x7c\xd1\x34\x49\x52\xd7\xc0\x90\x0b\x89\x90\x1a\xb4\x16\x75\x0a\x4d\xe3\x4e\xa7\x77\x95\x28\x5c\x0e\x3f\x2f\xa1\xa4\x26\xa7\x05\x4c\xc9\x26\x57\x25\x92\x0f\x51\x12\x15\x35\xe6\x28\x76\x41\xb3\xfb\xee\xcc\xa3\x12\x17\x58\x30\xe3\x54\xa6\xe4\x53\xf8\x8e\x92\xaa\x64\xd4\x06\x6b\x4e\x0b\x83\xe1\xfc\x02\x04\x07\xa5\x21\xbb\xa7\x66\x53\x71\x2e\xfe\xea\x5d\xa6\xb7\xde\x24\x9d\x9d\x92\x7e\x96\x4e\xa1\x69\x92\xc9\x30\xc8\x12\xac\xae\xb0\x3b\x8e\x59\xb9\xa4\x7e\xad\x2c\xbd\x2b\x70\x98\xdb\x05\xa0\xcb\x47\x70\x98\x92\xf5\x8a\xdc\x1a\xd4\x2b\x8f\x15\x3b\x74\x40\xcb\x12\x25\xeb\x0e\x9c\x41\xe7\x44\x7a\x7d\x77\x59\x4d\xe5\x16\x61\xfa\xfb\x1b\x98\x72\x8f\x05\xef\xc2\x79\x77\xe5\x3e\x86\x9c\xdc\x3c\x96\x48\x36\x56\x0b\xb9\xed\x63\x56\x32\xf7\x55\xd1\x42\x5a\x48\x37\x68\x53\xa7\xba\xb1\xba\xca\xad\xcf\xdf\xab\x2e\x16\xd0\x69\x37\x0d\x18\xb4\xc6\x73\xc3\x1f\x92\x6b\xfa\xe0\x60\x00\x9f\x00\x49\x26\x5e\x2d\xdb\x2b\x67\xd3\xc0\x7c\x48\x84\xa6\x99\x0d\x3d\x66\x21\xe1\xa6\x89\x1e\x5d\xaa\x5e\x67\x64\x04\x75\x32\x99\x38\x1c\x16\x73\x97\x84\x75\x57\x91\xd5\x03\x6a\x91\x83\x75\x36\x6a\x87\x5a\x0b\x86\x50\x6a\xdc\x09\x55\x19\xc8\x69\x51\x18\xb0\x0a\x2e\x19\x23\xe0\x89\x1a\x5c\x08\x0e\xd4\xa3\x1c\x80\xb9\x8e\x6e\xba\xf2\x7a\xc5\xc9\xe8\x16\xe4\xa1\xb2\xd4\x0a\x25\x49\x5d\xb7\xa0\xfd\x86\xe6\x28\x6c\xd9\x2c\x46\x8a\x45\x3b\xed\xec\x00\x0a\x67\xad\xd1\x56\x5a\xc2\xc8\x2e\x99\x34\x89\x2b\xdf\x62\x0e\x74\xa7\x04\x83\x2d\x4a\xd4\x01\x0c\x51\x14\x8e\x7a\x10\x1a\xd0\x00\x57\xba\x3f\x74\x10\x99\x16\x84\xba\x6e\x21\xc8\xa4\xb2\x3d\x0e\x51\x79\x06\x99\xf2\xb4\xf9\x5c\xba\x14\x5d\xcb\x72\xb2\x42\x4e\xab\xc2\xce\x82\x49\xe6\xf1\x6b\xf1\x9a\x72\x12\xba\xa5\x55\x9a\xf5\x97\x6e\x33\xf8\x74\x40\xb7\x36\xdc\x51\xda\xb5\xbc\xdb\x33\x7f\x86\x7f\xee\x52\x4e\xb4\x15\x3b\x94\xb0\xa3\x45\xe5\x87\xa1\xcb\x57\x8a\x82\x24\x93\x73\xe8\x39\x0a\xdc\xd3\x74\xfe\x02\x9e\x4e\x04\x87\xce\xe0\x7f\x4b\x17\x3e\x9c\x1f\xf0\x60\x58\xfe\xf9\xb0\xfe\x13\xcf\xc1\xa7\x58\x30\x09\x55\x6c\x67\xc2\xa0\xa2\x07\xa4\xe6\xe4\x4a\xc9\x1d\x6a\x8b\xec\x46\x7d\xa0\xe6\x80\xe8\x47\x86\xc1\x25\x63\x27\xab\xd2\x4e\x03\xca\x98\xe9\x2f\x6a\xd5\x7e\x55\xce\x44\xfc\x35\x03\xe1\xfc\xbe\x7a\x1d\xa4\x7d\x27\x3c\x07\xdd\x55\x81\x54\xbf\x08\xbc\xdc\x69\x06\x32\x07\xae\x2a\xfe\xaf\xe0\xf7\x23\x48\x9d\x81\xd0\x00\xab\x7e\x25\x61\x58\xcd\x1f\xd9\x16\xfb\x75\xa4\xfc\x3e\x4a\xa9\x23\x55\xd3\x04\x5c\xa7\x48\x6e\xa5\xf8\xee\x97\x68\xd4\x59\xfa\xb7\x43\x54\x69\x07\xa7\x93\x09\x66\xf6\xa7\x47\xd6\xbe\x24\x54\x39\x83\xcc\x08\xb9\xad\x0a\xaa\x9d\x4f\x8f\xdc\xdf\xf1\xa5\x31\x83\x74\xbd\x32\x4f\xc7\x6c\xfd\x1e\x77\xdb\xfe\x08\x4e\xbd\xaf\x51\x6e\xb1\x9e\xad\x9b\xc8\x58\xe5\x98\xd6\xcf\x28\xec\x66\x14\xb2\x2d\xb6\x3d\x82\xb1\x49\xa3\xe8\xee\x11\x04\x0b\x49\xfa\x81\x3c\x48\xd4\x74\x01\xcf\x5b\xaf\x7d\x56\xd9\xe1\xed\x7d\x30\x0c\xaf\x24\xc1\x0c\x10\x42\xba\x30\xc3\xfc\xd6\xab\xe7\xf6\xf1\x09\x4e\xbd\x3a\x83\xd3\xeb\x6f\xd8\x98\x9d\xc3\x29\xf6\x2d\x7a\xb0\x7a\xd6\x2b\x73\x72\xfb\xe0\x5e\xab\xc6\x3a\x1f\xae\xa0\xd6\xcd\x78\x0b\xbd\xbc\xc2\xff\xc9\x82\xea\xd3\xca\x04\x0b\xaa\x2f\xac\x9e\xdb\x52\x82\x3d\xbd\x9f\x9a\x06\x96\xe3\x0a\x8c\x2b\x3b\x17\xec\xdc\x6d\xd5\x3f\x51\x0b\xf5\x27\x6a\xc8\x7c\x51\x38\xa4\xff\x27\xef\x4c\xba\x87\x5c\xf7\xf2\x16\x1c\xf0\xbb\xb3\xda\xc3\x25\x38\x5a\x42\xba\x4b\xe3\xcf\x61\x08\xfe\xf4\xcc\x18\x95\xfc\xc8\x3b\xf7\xd9\x4e\xae\xeb\x71\xb3\x0e\x7b\xf5\x38\x0b\x7e\xfc\x81\x7c\x64\x40\x0c\x3b\x67\x3e\x8a\x79\xa2\x6f\xf7\xfa\xf1\xa2\x39\x51\xbf\x23\xcd\xec\xf3\x21\xeb\x55\xf7\xcc\x75\x8d\x1c\x9d\x88\xf0\xff\xec\x81\x7e\xc3\xec\xcb\xd7\xa3\x74\x7c\x03\x05\xca\x7e\x2b\xcf\xda\xf5\x24\xfc\x9e\x10\xfd\xc4\x76\x35\x17\x41\x2b\xc8\x97\x90\xfe\x31\x98\xc2\x31\xa4\x7b\xe9\x06\x79\xd3\xf8\xbf\x3e\x7e\x19\xf5\xb8\x79\x66\x0b\x66\xbe\xb4\x4a\x5f\x23\xb1\x9d\xb8\x3f\x24\xeb\xd5\x33\x54\x1e\x43\x21\x98\x21\x84\x8c\x1f\xfb\xc3\xdd\xd8\x7f\xfd\x13\x00\x00\xff\xff\x7d\x99\x66\x03\xe7\x0f\x00\x00") +var _templateBuilderSetterTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x57\x4d\x6f\xdb\x38\x13\x3e\x5b\xbf\x62\x5e\xc1\x2f\x20\x1b\x1b\xba\xed\x6d\x17\xf0\x21\x8d\x5b\xc0\xc0\x36\x05\xd6\xc9\xa9\xe8\x41\x11\x87\x0e\x5b\x85\x54\x49\xca\xbb\x81\x56\xff\x7d\xc1\x2f\x49\x96\x1d\x27\x4e\x77\x6f\x36\x67\x38\x33\x7c\xe6\x99\x0f\x35\xcd\x62\x9e\x5c\xc9\xea\x51\xf1\xed\xbd\x81\x77\x6f\xde\xfe\x7a\x51\x29\xd4\x28\x0c\x7c\xcc\x0b\xbc\x93\xf2\x3b\xac\x45\x41\xe0\xb2\x2c\xc1\x29\x69\xb0\x72\xb5\x43\x4a\x92\x9b\x7b\xae\x41\xcb\x5a\x15\x08\x85\xa4\x08\x5c\x43\xc9\x0b\x14\x1a\x29\xd4\x82\xa2\x02\x73\x8f\x70\x59\xe5\xc5\x3d\xc2\x3b\xf2\x26\x4a\x81\xc9\x5a\xd0\x84\x0b\x27\xff\x7d\x7d\xf5\xe1\x7a\xf3\x01\x18\x2f\x11\xc2\x99\x92\xd2\x00\xe5\x0a\x0b\x23\xd5\x23\x48\x06\x66\xe0\xcc\x28\x44\x92\xcc\x17\x6d\x9b\x24\x4d\x03\x14\x19\x17\x08\xa9\x46\x63\x50\xa5\xd0\xb6\xf6\x74\x7a\x57\xf3\xd2\xc6\xf0\xdb\x12\xaa\x5c\x17\x79\x09\x53\xb2\x29\x64\x85\xe4\x7d\x90\x04\x45\x85\x05\xf2\x9d\xd7\xec\x7e\x77\xd7\x83\x12\xe3\x58\x52\x6d\x55\xa6\xe4\xa3\xff\x1d\x24\x75\x45\x73\xe3\x6f\xb3\xbc\xd4\xe8\xcf\x2f\x80\x33\x90\x0a\xb2\xfb\x5c\x6f\x6a\xc6\xf8\x5f\xbd\xc9\xf4\xd6\x5d\x49\x67\xa7\xa4\x9f\x85\x55\x68\xdb\x64\x32\x74\xb2\x04\xa3\x6a\xec\x8e\x43\x54\x36\xa8\x4f\xb5\xc9\xef\x4a\x1c\xc6\x76\x01\x68\xe3\xe1\x0c\xa6\x64\xbd\x22\xb7\x1a\xd5\xca\x61\x45\x0f\x0d\xe4\x55\x85\x82\x76\x07\xf6\x42\x67\x44\x38\x7d\xfb\x58\x95\x8b\x2d\xc2\x94\x39\x1c\x58\xe7\xca\x99\xaa\xf6\xf1\x63\xe4\xe6\xb1\x42\xb2\x31\x8a\x8b\x6d\xef\xaf\x16\x85\xcb\x88\xe2\xc2\x40\xba\x41\x93\x5a\xd5\x8d\x51\x75\x61\x5c\xec\x4e\x75\xb1\x80\x4e\xbb\x6d\x41\xa3\xd1\x8e\x17\xee\x90\x5c\xe7\x0f\x16\x02\x70\x01\x90\x64\xe2\xd4\xb2\xbd\x54\xb6\x2d\xcc\x87\x24\x68\xdb\xd9\xd0\x62\xe6\x03\x6e\xdb\x60\xd1\x86\xea\x74\x46\x97\xa0\x49\x26\x13\x8b\xc1\x62\x6e\x83\x30\xf6\x29\xa2\x7e\x40\xc5\x0b\x30\xf6\x8e\xdc\xa1\x52\x9c\x22\x54\x0a\x77\x5c\xd6\x1a\x8a\xbc\x2c\x35\x18\x09\x97\x94\x12\x70\x24\xf5\x26\x38\x83\xdc\x21\xec\x81\xb9\x0e\x66\xba\xd4\x3a\xc5\xc9\xe8\x15\xe4\xa1\x36\xb9\xe1\x52\x90\xa6\x89\xa0\xfd\x81\xfa\x28\x6c\xd9\x2c\x78\x0a\x09\x3b\x6d\xec\x00\x0a\x7b\x5b\xa1\xa9\x95\x80\xd1\xbd\x64\xd2\x26\x36\x7d\x8b\x39\xe4\x3b\xc9\x29\x6c\x51\xa0\xf2\x60\xf0\xb2\xb4\xb4\x03\x5f\x7c\x1a\x98\x54\xfd\xa1\x85\x48\x47\x10\x9a\x26\x42\x90\x09\x69\x7a\x1c\x82\xf2\x0c\x32\xe9\x68\xf3\xb9\xb2\x21\xda\x72\x65\x64\x85\x2c\xaf\x4b\x33\xf3\x57\x32\x87\x5f\xc4\x6b\xca\x88\xaf\x94\xa8\x34\xeb\x1f\x1d\x23\xf8\x78\x40\xb7\xe8\xee\x28\xed\x22\xef\xf6\xae\x3f\xc3\x3f\xfb\x28\x2b\xda\xf2\x1d\x0a\xd8\xe5\x65\xed\x1a\xa1\x8d\x57\xf0\x92\x24\x93\x73\xe8\x39\x72\xdc\xd3\x74\xfe\x02\x9e\x4e\x38\x83\xee\xc2\xff\x96\xd6\xbd\x3f\x3f\xe0\xc1\x30\xfd\xf3\x61\xfe\x27\x8e\x83\x4f\xb1\x60\xe2\xb3\x18\xfb\xc1\x20\xa3\x07\xa4\x66\xe4\x4a\x8a\x1d\x2a\x83\xf4\x46\xbe\xcf\xf5\x01\xd1\x8f\x34\x83\x4b\x4a\x4f\x66\x25\x76\x83\x9c\x52\xdd\x3f\xd4\xc8\xfd\xac\x9c\x89\xf8\x6b\x1a\xc2\xf9\x75\xf5\x3a\x48\xfb\x4a\x78\x0e\xba\xab\x12\x73\xf5\x22\xf0\x0a\xab\xe9\xc9\xec\xb9\x2a\xd9\xbf\x82\xdf\xcf\x20\x75\x06\x42\x03\xac\xfa\x71\x84\x7e\x2c\x7f\xa0\x5b\xec\xc7\x91\x74\xf3\x28\xcd\x2d\xa9\xda\xd6\xe3\x3a\x45\x72\x2b\xf8\x0f\x37\x40\x83\xce\xd2\xed\x0d\x41\x25\x36\x4e\x2b\xe3\x54\xef\x77\x8f\x2c\x6e\x11\xb2\x9a\x41\xa6\xb9\xd8\xd6\x65\xae\xac\x4d\x87\xdc\xdf\x61\xcb\x98\x41\xba\x5e\xe9\xa7\x7d\x46\xbb\xc7\xcd\xc6\x3f\xde\xa8\xb3\x35\x8a\x2d\xe4\x33\x9a\x09\x8c\x95\x96\x69\x7d\x8f\xc2\xae\x47\x21\xdd\x62\xac\x11\x0c\x45\x1a\x44\x77\x8f\xc0\xa9\x0f\xd2\x35\xe4\x41\xa0\xba\x73\x78\xde\x78\xed\xa3\xca\x0e\x5f\xef\x9c\xa1\xdf\x90\x38\xd5\x40\x08\xe9\xdc\x0c\xe3\x5b\xaf\x9e\x9b\xc7\x27\x38\xf5\xea\x08\x4e\x8f\xbf\x61\x61\x76\x06\xa7\xd8\x97\xe8\xc1\xe8\x59\xaf\xf4\xc9\xe9\x83\x7b\xa5\x1a\xf2\x7c\x38\x82\xa2\x99\xf1\x14\x7a\x79\x86\xff\x93\x01\xd5\x87\x95\x71\xea\x55\x5f\x98\x3d\x3b\xa5\x38\x7d\x7a\x3e\xb5\x2d\x2c\xc7\x19\x18\x67\x76\xce\xe9\xb9\xd3\xaa\x5f\x51\x4b\xf9\x27\x2a\xc8\x5c\x52\x18\xa4\xff\x27\x6f\x75\xba\x87\x5c\xb7\x75\x73\x06\xf8\xc3\xde\xda\xc3\xc5\x1b\x5a\x42\xba\x4b\xc3\xdf\xa1\x0b\xf6\x74\xcf\x18\xa5\xfc\xc8\x9e\xfb\x6c\x25\x37\xcd\xb8\x58\x87\xb5\x7a\x9c\x05\x3f\xbf\x20\x1f\x69\x10\xc3\xca\x99\x8f\x7c\x9e\xa8\xdb\xbd\x7a\xbc\x68\x4f\xe4\xef\x48\x31\xbb\x78\xc8\x7a\xd5\xad\xb9\xb6\x90\x83\x11\xee\xbf\xcd\x1e\xf2\xef\x98\x7d\xf9\x7a\x94\x8e\xbf\x40\x89\xa2\x9f\xca\xb3\x38\x9e\xb8\x9b\x13\xbc\xef\xd8\x36\xe7\xdc\x6b\x79\xf9\x12\xd2\x6f\x83\x2e\x1c\x5c\xda\x4d\xd7\xcb\xdb\xd6\x7d\xfa\xb8\x61\xd4\xe3\xe6\x98\xcd\xa9\xfe\x12\x95\xbe\x06\x62\x5b\x71\x7f\x48\xd6\xab\x67\xa8\x3c\x86\x82\x53\x4d\x08\x19\x2f\xfb\x7b\xb3\x71\xb1\x80\x4f\xa1\x2b\x82\x37\xda\x33\x8a\x44\x49\x24\x96\xbc\xfb\x86\x85\xf1\x1f\xd9\x08\x21\x69\x24\x79\x21\x69\xa2\xb5\xb8\x01\x1c\x98\x6f\x92\xa7\xde\x15\x1b\x77\xe2\xa7\x79\x08\xfe\x9f\x00\x00\x00\xff\xff\x71\x20\x77\x5f\x96\x10\x00\x00") func templateBuilderSetterTmplBytes() ([]byte, error) { return bindataRead( @@ -241,7 +241,7 @@ func templateBuilderSetterTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "template/builder/setter.tmpl", size: 4071, mode: os.FileMode(420), modTime: time.Unix(1, 0)} + info := bindataFileInfo{name: "template/builder/setter.tmpl", size: 4246, mode: os.FileMode(420), modTime: time.Unix(1, 0)} a := &asset{bytes: bytes, info: info} return a, nil } diff --git a/entc/gen/template/builder/mutation.tmpl b/entc/gen/template/builder/mutation.tmpl index 808bfafe5..2d8cc575f 100644 --- a/entc/gen/template/builder/mutation.tmpl +++ b/entc/gen/template/builder/mutation.tmpl @@ -45,7 +45,7 @@ type {{ $mutation }} struct { {{ $n.ID.BuilderField }} *{{ $n.ID.Type }} {{- range $f := $n.Fields }} {{ $f.BuilderField }} *{{ $f.Type }} - {{- if and $f.Type.Numeric $f.ConvertedToBasic }} + {{- if and $f.Type.Numeric $f.ConvertedToBasic }} add{{ $f.BuilderField }} *{{ $f.Type }} {{- end }} {{- end }} diff --git a/entc/gen/template/builder/setter.tmpl b/entc/gen/template/builder/setter.tmpl index 44219299b..5814f1be6 100644 --- a/entc/gen/template/builder/setter.tmpl +++ b/entc/gen/template/builder/setter.tmpl @@ -16,7 +16,7 @@ in the LICENSE file in the root directory of this source tree. {{ $fields = append $fields $.ID }} {{- end }} -{{ range $_, $f := $fields }} +{{ range $f := $fields }} {{ $p := receiver $f.Type.String }} {{ $func := print "Set" $f.StructField }} // {{ $func }} sets the {{ $f.Name }} field. @@ -95,4 +95,10 @@ in the LICENSE file in the root directory of this source tree. {{- end }} } {{ end }} + +// Mutation returns the {{ $.MutationName }} object of the builder. +func ({{ $receiver }} *{{ $builder }}) Mutation() *{{ $.MutationName }} { + return {{ $receiver }}.mutation +} + {{ end }} diff --git a/entc/integration/config/ent/user_create.go b/entc/integration/config/ent/user_create.go index 40fca7ebe..e92ec7b84 100644 --- a/entc/integration/config/ent/user_create.go +++ b/entc/integration/config/ent/user_create.go @@ -22,6 +22,11 @@ type UserCreate struct { hooks []Hook } +// Mutation returns the UserMutation object of the builder. +func (uc *UserCreate) Mutation() *UserMutation { + return uc.mutation +} + // Save creates the User in the database. func (uc *UserCreate) Save(ctx context.Context) (*User, error) { var ( diff --git a/entc/integration/config/ent/user_update.go b/entc/integration/config/ent/user_update.go index f19ebc465..aa4571f7f 100644 --- a/entc/integration/config/ent/user_update.go +++ b/entc/integration/config/ent/user_update.go @@ -31,6 +31,11 @@ func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate { return uu } +// Mutation returns the UserMutation object of the builder. +func (uu *UserUpdate) Mutation() *UserMutation { + return uu.mutation +} + // Save executes the query and returns the number of rows/vertices matched by this operation. func (uu *UserUpdate) Save(ctx context.Context) (int, error) { var ( @@ -118,6 +123,11 @@ type UserUpdateOne struct { mutation *UserMutation } +// Mutation returns the UserMutation object of the builder. +func (uuo *UserUpdateOne) Mutation() *UserMutation { + return uuo.mutation +} + // Save executes the query and returns the updated entity. func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error) { var ( diff --git a/entc/integration/customid/ent/blob_create.go b/entc/integration/customid/ent/blob_create.go index 281f4201d..afae1a2fd 100644 --- a/entc/integration/customid/ent/blob_create.go +++ b/entc/integration/customid/ent/blob_create.go @@ -69,6 +69,11 @@ func (bc *BlobCreate) AddLinks(b ...*Blob) *BlobCreate { return bc.AddLinkIDs(ids...) } +// Mutation returns the BlobMutation object of the builder. +func (bc *BlobCreate) Mutation() *BlobMutation { + return bc.mutation +} + // Save creates the Blob in the database. func (bc *BlobCreate) Save(ctx context.Context) (*Blob, error) { if _, ok := bc.mutation.UUID(); !ok { diff --git a/entc/integration/customid/ent/blob_update.go b/entc/integration/customid/ent/blob_update.go index ddb3421fb..b5f05e969 100644 --- a/entc/integration/customid/ent/blob_update.go +++ b/entc/integration/customid/ent/blob_update.go @@ -72,6 +72,11 @@ func (bu *BlobUpdate) AddLinks(b ...*Blob) *BlobUpdate { return bu.AddLinkIDs(ids...) } +// Mutation returns the BlobMutation object of the builder. +func (bu *BlobUpdate) Mutation() *BlobMutation { + return bu.mutation +} + // ClearParent clears the parent edge to Blob. func (bu *BlobUpdate) ClearParent() *BlobUpdate { bu.mutation.ClearParent() @@ -301,6 +306,11 @@ func (buo *BlobUpdateOne) AddLinks(b ...*Blob) *BlobUpdateOne { return buo.AddLinkIDs(ids...) } +// Mutation returns the BlobMutation object of the builder. +func (buo *BlobUpdateOne) Mutation() *BlobMutation { + return buo.mutation +} + // ClearParent clears the parent edge to Blob. func (buo *BlobUpdateOne) ClearParent() *BlobUpdateOne { buo.mutation.ClearParent() diff --git a/entc/integration/customid/ent/car_create.go b/entc/integration/customid/ent/car_create.go index d09a2de4f..40995a6ea 100644 --- a/entc/integration/customid/ent/car_create.go +++ b/entc/integration/customid/ent/car_create.go @@ -83,6 +83,11 @@ func (cc *CarCreate) SetOwner(p *Pet) *CarCreate { return cc.SetOwnerID(p.ID) } +// Mutation returns the CarMutation object of the builder. +func (cc *CarCreate) Mutation() *CarMutation { + return cc.mutation +} + // Save creates the Car in the database. func (cc *CarCreate) Save(ctx context.Context) (*Car, error) { if v, ok := cc.mutation.BeforeID(); ok { diff --git a/entc/integration/customid/ent/car_update.go b/entc/integration/customid/ent/car_update.go index 141619a8a..783bfd070 100644 --- a/entc/integration/customid/ent/car_update.go +++ b/entc/integration/customid/ent/car_update.go @@ -111,6 +111,11 @@ func (cu *CarUpdate) SetOwner(p *Pet) *CarUpdate { return cu.SetOwnerID(p.ID) } +// Mutation returns the CarMutation object of the builder. +func (cu *CarUpdate) Mutation() *CarMutation { + return cu.mutation +} + // ClearOwner clears the owner edge to Pet. func (cu *CarUpdate) ClearOwner() *CarUpdate { cu.mutation.ClearOwner() @@ -376,6 +381,11 @@ func (cuo *CarUpdateOne) SetOwner(p *Pet) *CarUpdateOne { return cuo.SetOwnerID(p.ID) } +// Mutation returns the CarMutation object of the builder. +func (cuo *CarUpdateOne) Mutation() *CarMutation { + return cuo.mutation +} + // ClearOwner clears the owner edge to Pet. func (cuo *CarUpdateOne) ClearOwner() *CarUpdateOne { cuo.mutation.ClearOwner() diff --git a/entc/integration/customid/ent/group_create.go b/entc/integration/customid/ent/group_create.go index 5145a87b1..96478e5f1 100644 --- a/entc/integration/customid/ent/group_create.go +++ b/entc/integration/customid/ent/group_create.go @@ -44,6 +44,11 @@ func (gc *GroupCreate) AddUsers(u ...*User) *GroupCreate { return gc.AddUserIDs(ids...) } +// Mutation returns the GroupMutation object of the builder. +func (gc *GroupCreate) Mutation() *GroupMutation { + return gc.mutation +} + // Save creates the Group in the database. func (gc *GroupCreate) Save(ctx context.Context) (*Group, error) { var ( diff --git a/entc/integration/customid/ent/group_update.go b/entc/integration/customid/ent/group_update.go index b7d509b57..0ac9a1321 100644 --- a/entc/integration/customid/ent/group_update.go +++ b/entc/integration/customid/ent/group_update.go @@ -47,6 +47,11 @@ func (gu *GroupUpdate) AddUsers(u ...*User) *GroupUpdate { return gu.AddUserIDs(ids...) } +// Mutation returns the GroupMutation object of the builder. +func (gu *GroupUpdate) Mutation() *GroupMutation { + return gu.mutation +} + // RemoveUserIDs removes the users edge to User by ids. func (gu *GroupUpdate) RemoveUserIDs(ids ...int) *GroupUpdate { gu.mutation.RemoveUserIDs(ids...) @@ -203,6 +208,11 @@ func (guo *GroupUpdateOne) AddUsers(u ...*User) *GroupUpdateOne { return guo.AddUserIDs(ids...) } +// Mutation returns the GroupMutation object of the builder. +func (guo *GroupUpdateOne) Mutation() *GroupMutation { + return guo.mutation +} + // RemoveUserIDs removes the users edge to User by ids. func (guo *GroupUpdateOne) RemoveUserIDs(ids ...int) *GroupUpdateOne { guo.mutation.RemoveUserIDs(ids...) diff --git a/entc/integration/customid/ent/pet_create.go b/entc/integration/customid/ent/pet_create.go index dded17b95..0076cf809 100644 --- a/entc/integration/customid/ent/pet_create.go +++ b/entc/integration/customid/ent/pet_create.go @@ -98,6 +98,11 @@ func (pc *PetCreate) SetBestFriend(p *Pet) *PetCreate { return pc.SetBestFriendID(p.ID) } +// Mutation returns the PetMutation object of the builder. +func (pc *PetCreate) Mutation() *PetMutation { + return pc.mutation +} + // Save creates the Pet in the database. func (pc *PetCreate) Save(ctx context.Context) (*Pet, error) { if v, ok := pc.mutation.ID(); ok { diff --git a/entc/integration/customid/ent/pet_update.go b/entc/integration/customid/ent/pet_update.go index 24570a073..4eaccd3ba 100644 --- a/entc/integration/customid/ent/pet_update.go +++ b/entc/integration/customid/ent/pet_update.go @@ -101,6 +101,11 @@ func (pu *PetUpdate) SetBestFriend(p *Pet) *PetUpdate { return pu.SetBestFriendID(p.ID) } +// Mutation returns the PetMutation object of the builder. +func (pu *PetUpdate) Mutation() *PetMutation { + return pu.mutation +} + // ClearOwner clears the owner edge to User. func (pu *PetUpdate) ClearOwner() *PetUpdate { pu.mutation.ClearOwner() @@ -445,6 +450,11 @@ func (puo *PetUpdateOne) SetBestFriend(p *Pet) *PetUpdateOne { return puo.SetBestFriendID(p.ID) } +// Mutation returns the PetMutation object of the builder. +func (puo *PetUpdateOne) Mutation() *PetMutation { + return puo.mutation +} + // ClearOwner clears the owner edge to User. func (puo *PetUpdateOne) ClearOwner() *PetUpdateOne { puo.mutation.ClearOwner() diff --git a/entc/integration/customid/ent/user_create.go b/entc/integration/customid/ent/user_create.go index 2b9dea618..cd9f75f66 100644 --- a/entc/integration/customid/ent/user_create.go +++ b/entc/integration/customid/ent/user_create.go @@ -94,6 +94,11 @@ func (uc *UserCreate) AddPets(p ...*Pet) *UserCreate { return uc.AddPetIDs(ids...) } +// Mutation returns the UserMutation object of the builder. +func (uc *UserCreate) Mutation() *UserMutation { + return uc.mutation +} + // Save creates the User in the database. func (uc *UserCreate) Save(ctx context.Context) (*User, error) { var ( diff --git a/entc/integration/customid/ent/user_update.go b/entc/integration/customid/ent/user_update.go index 72880ec4f..d4f914a5d 100644 --- a/entc/integration/customid/ent/user_update.go +++ b/entc/integration/customid/ent/user_update.go @@ -97,6 +97,11 @@ func (uu *UserUpdate) AddPets(p ...*Pet) *UserUpdate { return uu.AddPetIDs(ids...) } +// Mutation returns the UserMutation object of the builder. +func (uu *UserUpdate) Mutation() *UserMutation { + return uu.mutation +} + // RemoveGroupIDs removes the groups edge to Group by ids. func (uu *UserUpdate) RemoveGroupIDs(ids ...int) *UserUpdate { uu.mutation.RemoveGroupIDs(ids...) @@ -449,6 +454,11 @@ func (uuo *UserUpdateOne) AddPets(p ...*Pet) *UserUpdateOne { return uuo.AddPetIDs(ids...) } +// Mutation returns the UserMutation object of the builder. +func (uuo *UserUpdateOne) Mutation() *UserMutation { + return uuo.mutation +} + // RemoveGroupIDs removes the groups edge to Group by ids. func (uuo *UserUpdateOne) RemoveGroupIDs(ids ...int) *UserUpdateOne { uuo.mutation.RemoveGroupIDs(ids...) diff --git a/entc/integration/ent/card_create.go b/entc/integration/ent/card_create.go index ba2bf64a6..fd525e1b4 100644 --- a/entc/integration/ent/card_create.go +++ b/entc/integration/ent/card_create.go @@ -108,6 +108,11 @@ func (cc *CardCreate) AddSpec(s ...*Spec) *CardCreate { return cc.AddSpecIDs(ids...) } +// Mutation returns the CardMutation object of the builder. +func (cc *CardCreate) Mutation() *CardMutation { + return cc.mutation +} + // Save creates the Card in the database. func (cc *CardCreate) Save(ctx context.Context) (*Card, error) { if _, ok := cc.mutation.CreateTime(); !ok { diff --git a/entc/integration/ent/card_update.go b/entc/integration/ent/card_update.go index c8b4e6771..3c9fe54c4 100644 --- a/entc/integration/ent/card_update.go +++ b/entc/integration/ent/card_update.go @@ -87,6 +87,11 @@ func (cu *CardUpdate) AddSpec(s ...*Spec) *CardUpdate { return cu.AddSpecIDs(ids...) } +// Mutation returns the CardMutation object of the builder. +func (cu *CardUpdate) Mutation() *CardMutation { + return cu.mutation +} + // ClearOwner clears the owner edge to User. func (cu *CardUpdate) ClearOwner() *CardUpdate { cu.mutation.ClearOwner() @@ -352,6 +357,11 @@ func (cuo *CardUpdateOne) AddSpec(s ...*Spec) *CardUpdateOne { return cuo.AddSpecIDs(ids...) } +// Mutation returns the CardMutation object of the builder. +func (cuo *CardUpdateOne) Mutation() *CardMutation { + return cuo.mutation +} + // ClearOwner clears the owner edge to User. func (cuo *CardUpdateOne) ClearOwner() *CardUpdateOne { cuo.mutation.ClearOwner() diff --git a/entc/integration/ent/comment_create.go b/entc/integration/ent/comment_create.go index 1db21e008..17ba0e827 100644 --- a/entc/integration/ent/comment_create.go +++ b/entc/integration/ent/comment_create.go @@ -49,6 +49,11 @@ func (cc *CommentCreate) SetNillableNillableInt(i *int) *CommentCreate { return cc } +// Mutation returns the CommentMutation object of the builder. +func (cc *CommentCreate) Mutation() *CommentMutation { + return cc.mutation +} + // Save creates the Comment in the database. func (cc *CommentCreate) Save(ctx context.Context) (*Comment, error) { if _, ok := cc.mutation.UniqueInt(); !ok { diff --git a/entc/integration/ent/comment_update.go b/entc/integration/ent/comment_update.go index 4a4b53b16..7add91290 100644 --- a/entc/integration/ent/comment_update.go +++ b/entc/integration/ent/comment_update.go @@ -84,6 +84,11 @@ func (cu *CommentUpdate) ClearNillableInt() *CommentUpdate { return cu } +// Mutation returns the CommentMutation object of the builder. +func (cu *CommentUpdate) Mutation() *CommentMutation { + return cu.mutation +} + // Save executes the query and returns the number of rows/vertices matched by this operation. func (cu *CommentUpdate) Save(ctx context.Context) (int, error) { var ( @@ -272,6 +277,11 @@ func (cuo *CommentUpdateOne) ClearNillableInt() *CommentUpdateOne { return cuo } +// Mutation returns the CommentMutation object of the builder. +func (cuo *CommentUpdateOne) Mutation() *CommentMutation { + return cuo.mutation +} + // Save executes the query and returns the updated entity. func (cuo *CommentUpdateOne) Save(ctx context.Context) (*Comment, error) { var ( diff --git a/entc/integration/ent/fieldtype_create.go b/entc/integration/ent/fieldtype_create.go index 27495d144..5d18233f7 100644 --- a/entc/integration/ent/fieldtype_create.go +++ b/entc/integration/ent/fieldtype_create.go @@ -498,6 +498,11 @@ func (ftc *FieldTypeCreate) SetNillableSchemaInt64(s *schema.Int64) *FieldTypeCr return ftc } +// Mutation returns the FieldTypeMutation object of the builder. +func (ftc *FieldTypeCreate) Mutation() *FieldTypeMutation { + return ftc.mutation +} + // Save creates the FieldType in the database. func (ftc *FieldTypeCreate) Save(ctx context.Context) (*FieldType, error) { if _, ok := ftc.mutation.Int(); !ok { diff --git a/entc/integration/ent/fieldtype_update.go b/entc/integration/ent/fieldtype_update.go index 97a3b98b2..a9287c865 100644 --- a/entc/integration/ent/fieldtype_update.go +++ b/entc/integration/ent/fieldtype_update.go @@ -911,6 +911,11 @@ func (ftu *FieldTypeUpdate) ClearSchemaInt64() *FieldTypeUpdate { return ftu } +// Mutation returns the FieldTypeMutation object of the builder. +func (ftu *FieldTypeUpdate) Mutation() *FieldTypeMutation { + return ftu.mutation +} + // Save executes the query and returns the number of rows/vertices matched by this operation. func (ftu *FieldTypeUpdate) Save(ctx context.Context) (int, error) { if v, ok := ftu.mutation.ValidateOptionalInt32(); ok { @@ -2576,6 +2581,11 @@ func (ftuo *FieldTypeUpdateOne) ClearSchemaInt64() *FieldTypeUpdateOne { return ftuo } +// Mutation returns the FieldTypeMutation object of the builder. +func (ftuo *FieldTypeUpdateOne) Mutation() *FieldTypeMutation { + return ftuo.mutation +} + // Save executes the query and returns the updated entity. func (ftuo *FieldTypeUpdateOne) Save(ctx context.Context) (*FieldType, error) { if v, ok := ftuo.mutation.ValidateOptionalInt32(); ok { diff --git a/entc/integration/ent/file_create.go b/entc/integration/ent/file_create.go index 873fe6def..67549d16d 100644 --- a/entc/integration/ent/file_create.go +++ b/entc/integration/ent/file_create.go @@ -127,6 +127,11 @@ func (fc *FileCreate) AddField(f ...*FieldType) *FileCreate { return fc.AddFieldIDs(ids...) } +// Mutation returns the FileMutation object of the builder. +func (fc *FileCreate) Mutation() *FileMutation { + return fc.mutation +} + // Save creates the File in the database. func (fc *FileCreate) Save(ctx context.Context) (*File, error) { if _, ok := fc.mutation.Size(); !ok { diff --git a/entc/integration/ent/file_update.go b/entc/integration/ent/file_update.go index e0eac8b34..947469d7c 100644 --- a/entc/integration/ent/file_update.go +++ b/entc/integration/ent/file_update.go @@ -154,6 +154,11 @@ func (fu *FileUpdate) AddField(f ...*FieldType) *FileUpdate { return fu.AddFieldIDs(ids...) } +// Mutation returns the FileMutation object of the builder. +func (fu *FileUpdate) Mutation() *FileMutation { + return fu.mutation +} + // ClearOwner clears the owner edge to User. func (fu *FileUpdate) ClearOwner() *FileUpdate { fu.mutation.ClearOwner() @@ -549,6 +554,11 @@ func (fuo *FileUpdateOne) AddField(f ...*FieldType) *FileUpdateOne { return fuo.AddFieldIDs(ids...) } +// Mutation returns the FileMutation object of the builder. +func (fuo *FileUpdateOne) Mutation() *FileMutation { + return fuo.mutation +} + // ClearOwner clears the owner edge to User. func (fuo *FileUpdateOne) ClearOwner() *FileUpdateOne { fuo.mutation.ClearOwner() diff --git a/entc/integration/ent/filetype_create.go b/entc/integration/ent/filetype_create.go index e1bf4dddd..9a7a88291 100644 --- a/entc/integration/ent/filetype_create.go +++ b/entc/integration/ent/filetype_create.go @@ -45,6 +45,11 @@ func (ftc *FileTypeCreate) AddFiles(f ...*File) *FileTypeCreate { return ftc.AddFileIDs(ids...) } +// Mutation returns the FileTypeMutation object of the builder. +func (ftc *FileTypeCreate) Mutation() *FileTypeMutation { + return ftc.mutation +} + // Save creates the FileType in the database. func (ftc *FileTypeCreate) Save(ctx context.Context) (*FileType, error) { if _, ok := ftc.mutation.Name(); !ok { diff --git a/entc/integration/ent/filetype_update.go b/entc/integration/ent/filetype_update.go index 484b74792..2da2e2958 100644 --- a/entc/integration/ent/filetype_update.go +++ b/entc/integration/ent/filetype_update.go @@ -53,6 +53,11 @@ func (ftu *FileTypeUpdate) AddFiles(f ...*File) *FileTypeUpdate { return ftu.AddFileIDs(ids...) } +// Mutation returns the FileTypeMutation object of the builder. +func (ftu *FileTypeUpdate) Mutation() *FileTypeMutation { + return ftu.mutation +} + // RemoveFileIDs removes the files edge to File by ids. func (ftu *FileTypeUpdate) RemoveFileIDs(ids ...int) *FileTypeUpdate { ftu.mutation.RemoveFileIDs(ids...) @@ -222,6 +227,11 @@ func (ftuo *FileTypeUpdateOne) AddFiles(f ...*File) *FileTypeUpdateOne { return ftuo.AddFileIDs(ids...) } +// Mutation returns the FileTypeMutation object of the builder. +func (ftuo *FileTypeUpdateOne) Mutation() *FileTypeMutation { + return ftuo.mutation +} + // RemoveFileIDs removes the files edge to File by ids. func (ftuo *FileTypeUpdateOne) RemoveFileIDs(ids ...int) *FileTypeUpdateOne { ftuo.mutation.RemoveFileIDs(ids...) diff --git a/entc/integration/ent/group_create.go b/entc/integration/ent/group_create.go index 14fab4c0e..cfcea760f 100644 --- a/entc/integration/ent/group_create.go +++ b/entc/integration/ent/group_create.go @@ -137,6 +137,11 @@ func (gc *GroupCreate) SetInfo(g *GroupInfo) *GroupCreate { return gc.SetInfoID(g.ID) } +// Mutation returns the GroupMutation object of the builder. +func (gc *GroupCreate) Mutation() *GroupMutation { + return gc.mutation +} + // Save creates the Group in the database. func (gc *GroupCreate) Save(ctx context.Context) (*Group, error) { if _, ok := gc.mutation.Active(); !ok { diff --git a/entc/integration/ent/group_update.go b/entc/integration/ent/group_update.go index 83ce1cf26..9d889f70a 100644 --- a/entc/integration/ent/group_update.go +++ b/entc/integration/ent/group_update.go @@ -165,6 +165,11 @@ func (gu *GroupUpdate) SetInfo(g *GroupInfo) *GroupUpdate { return gu.SetInfoID(g.ID) } +// Mutation returns the GroupMutation object of the builder. +func (gu *GroupUpdate) Mutation() *GroupMutation { + return gu.mutation +} + // RemoveFileIDs removes the files edge to File by ids. func (gu *GroupUpdate) RemoveFileIDs(ids ...int) *GroupUpdate { gu.mutation.RemoveFileIDs(ids...) @@ -654,6 +659,11 @@ func (guo *GroupUpdateOne) SetInfo(g *GroupInfo) *GroupUpdateOne { return guo.SetInfoID(g.ID) } +// Mutation returns the GroupMutation object of the builder. +func (guo *GroupUpdateOne) Mutation() *GroupMutation { + return guo.mutation +} + // RemoveFileIDs removes the files edge to File by ids. func (guo *GroupUpdateOne) RemoveFileIDs(ids ...int) *GroupUpdateOne { guo.mutation.RemoveFileIDs(ids...) diff --git a/entc/integration/ent/groupinfo_create.go b/entc/integration/ent/groupinfo_create.go index cc104c924..56c7476c7 100644 --- a/entc/integration/ent/groupinfo_create.go +++ b/entc/integration/ent/groupinfo_create.go @@ -59,6 +59,11 @@ func (gic *GroupInfoCreate) AddGroups(g ...*Group) *GroupInfoCreate { return gic.AddGroupIDs(ids...) } +// Mutation returns the GroupInfoMutation object of the builder. +func (gic *GroupInfoCreate) Mutation() *GroupInfoMutation { + return gic.mutation +} + // Save creates the GroupInfo in the database. func (gic *GroupInfoCreate) Save(ctx context.Context) (*GroupInfo, error) { if _, ok := gic.mutation.Desc(); !ok { diff --git a/entc/integration/ent/groupinfo_update.go b/entc/integration/ent/groupinfo_update.go index 068f32ad8..b39403dcb 100644 --- a/entc/integration/ent/groupinfo_update.go +++ b/entc/integration/ent/groupinfo_update.go @@ -74,6 +74,11 @@ func (giu *GroupInfoUpdate) AddGroups(g ...*Group) *GroupInfoUpdate { return giu.AddGroupIDs(ids...) } +// Mutation returns the GroupInfoMutation object of the builder. +func (giu *GroupInfoUpdate) Mutation() *GroupInfoMutation { + return giu.mutation +} + // RemoveGroupIDs removes the groups edge to Group by ids. func (giu *GroupInfoUpdate) RemoveGroupIDs(ids ...int) *GroupInfoUpdate { giu.mutation.RemoveGroupIDs(ids...) @@ -278,6 +283,11 @@ func (giuo *GroupInfoUpdateOne) AddGroups(g ...*Group) *GroupInfoUpdateOne { return giuo.AddGroupIDs(ids...) } +// Mutation returns the GroupInfoMutation object of the builder. +func (giuo *GroupInfoUpdateOne) Mutation() *GroupInfoMutation { + return giuo.mutation +} + // RemoveGroupIDs removes the groups edge to Group by ids. func (giuo *GroupInfoUpdateOne) RemoveGroupIDs(ids ...int) *GroupInfoUpdateOne { giuo.mutation.RemoveGroupIDs(ids...) diff --git a/entc/integration/ent/item_create.go b/entc/integration/ent/item_create.go index d35605e0d..718d91f27 100644 --- a/entc/integration/ent/item_create.go +++ b/entc/integration/ent/item_create.go @@ -22,6 +22,11 @@ type ItemCreate struct { hooks []Hook } +// Mutation returns the ItemMutation object of the builder. +func (ic *ItemCreate) Mutation() *ItemMutation { + return ic.mutation +} + // Save creates the Item in the database. func (ic *ItemCreate) Save(ctx context.Context) (*Item, error) { var ( diff --git a/entc/integration/ent/item_update.go b/entc/integration/ent/item_update.go index 7477096a3..169cb90be 100644 --- a/entc/integration/ent/item_update.go +++ b/entc/integration/ent/item_update.go @@ -31,6 +31,11 @@ func (iu *ItemUpdate) Where(ps ...predicate.Item) *ItemUpdate { return iu } +// Mutation returns the ItemMutation object of the builder. +func (iu *ItemUpdate) Mutation() *ItemMutation { + return iu.mutation +} + // Save executes the query and returns the number of rows/vertices matched by this operation. func (iu *ItemUpdate) Save(ctx context.Context) (int, error) { var ( @@ -118,6 +123,11 @@ type ItemUpdateOne struct { mutation *ItemMutation } +// Mutation returns the ItemMutation object of the builder. +func (iuo *ItemUpdateOne) Mutation() *ItemMutation { + return iuo.mutation +} + // Save executes the query and returns the updated entity. func (iuo *ItemUpdateOne) Save(ctx context.Context) (*Item, error) { var ( diff --git a/entc/integration/ent/node_create.go b/entc/integration/ent/node_create.go index e7e3bcb4d..66dd3228b 100644 --- a/entc/integration/ent/node_create.go +++ b/entc/integration/ent/node_create.go @@ -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 ( diff --git a/entc/integration/ent/node_update.go b/entc/integration/ent/node_update.go index 32fd9bd1e..c65676fd1 100644 --- a/entc/integration/ent/node_update.go +++ b/entc/integration/ent/node_update.go @@ -96,6 +96,11 @@ func (nu *NodeUpdate) SetNext(n *Node) *NodeUpdate { return nu.SetNextID(n.ID) } +// Mutation returns the NodeMutation object of the builder. +func (nu *NodeUpdate) Mutation() *NodeMutation { + return nu.mutation +} + // ClearPrev clears the prev edge to Node. func (nu *NodeUpdate) ClearPrev() *NodeUpdate { nu.mutation.ClearPrev() @@ -351,6 +356,11 @@ func (nuo *NodeUpdateOne) SetNext(n *Node) *NodeUpdateOne { return nuo.SetNextID(n.ID) } +// Mutation returns the NodeMutation object of the builder. +func (nuo *NodeUpdateOne) Mutation() *NodeMutation { + return nuo.mutation +} + // ClearPrev clears the prev edge to Node. func (nuo *NodeUpdateOne) ClearPrev() *NodeUpdateOne { nuo.mutation.ClearPrev() diff --git a/entc/integration/ent/pet_create.go b/entc/integration/ent/pet_create.go index 7fe04ba66..29d72d8fa 100644 --- a/entc/integration/ent/pet_create.go +++ b/entc/integration/ent/pet_create.go @@ -68,6 +68,11 @@ func (pc *PetCreate) SetOwner(u *User) *PetCreate { return pc.SetOwnerID(u.ID) } +// Mutation returns the PetMutation object of the builder. +func (pc *PetCreate) Mutation() *PetMutation { + return pc.mutation +} + // Save creates the Pet in the database. func (pc *PetCreate) Save(ctx context.Context) (*Pet, error) { if _, ok := pc.mutation.Name(); !ok { diff --git a/entc/integration/ent/pet_update.go b/entc/integration/ent/pet_update.go index fc8d7c6e6..2eb6dde16 100644 --- a/entc/integration/ent/pet_update.go +++ b/entc/integration/ent/pet_update.go @@ -76,6 +76,11 @@ func (pu *PetUpdate) SetOwner(u *User) *PetUpdate { return pu.SetOwnerID(u.ID) } +// Mutation returns the PetMutation object of the builder. +func (pu *PetUpdate) Mutation() *PetMutation { + return pu.mutation +} + // ClearTeam clears the team edge to User. func (pu *PetUpdate) ClearTeam() *PetUpdate { pu.mutation.ClearTeam() @@ -297,6 +302,11 @@ func (puo *PetUpdateOne) SetOwner(u *User) *PetUpdateOne { return puo.SetOwnerID(u.ID) } +// Mutation returns the PetMutation object of the builder. +func (puo *PetUpdateOne) Mutation() *PetMutation { + return puo.mutation +} + // ClearTeam clears the team edge to User. func (puo *PetUpdateOne) ClearTeam() *PetUpdateOne { puo.mutation.ClearTeam() diff --git a/entc/integration/ent/spec_create.go b/entc/integration/ent/spec_create.go index 8ac74400c..70114e131 100644 --- a/entc/integration/ent/spec_create.go +++ b/entc/integration/ent/spec_create.go @@ -38,6 +38,11 @@ func (sc *SpecCreate) AddCard(c ...*Card) *SpecCreate { return sc.AddCardIDs(ids...) } +// Mutation returns the SpecMutation object of the builder. +func (sc *SpecCreate) Mutation() *SpecMutation { + return sc.mutation +} + // Save creates the Spec in the database. func (sc *SpecCreate) Save(ctx context.Context) (*Spec, error) { var ( diff --git a/entc/integration/ent/spec_update.go b/entc/integration/ent/spec_update.go index c9290fedc..82875a694 100644 --- a/entc/integration/ent/spec_update.go +++ b/entc/integration/ent/spec_update.go @@ -47,6 +47,11 @@ func (su *SpecUpdate) AddCard(c ...*Card) *SpecUpdate { return su.AddCardIDs(ids...) } +// Mutation returns the SpecMutation object of the builder. +func (su *SpecUpdate) Mutation() *SpecMutation { + return su.mutation +} + // RemoveCardIDs removes the card edge to Card by ids. func (su *SpecUpdate) RemoveCardIDs(ids ...int) *SpecUpdate { su.mutation.RemoveCardIDs(ids...) @@ -203,6 +208,11 @@ func (suo *SpecUpdateOne) AddCard(c ...*Card) *SpecUpdateOne { return suo.AddCardIDs(ids...) } +// Mutation returns the SpecMutation object of the builder. +func (suo *SpecUpdateOne) Mutation() *SpecMutation { + return suo.mutation +} + // RemoveCardIDs removes the card edge to Card by ids. func (suo *SpecUpdateOne) RemoveCardIDs(ids ...int) *SpecUpdateOne { suo.mutation.RemoveCardIDs(ids...) diff --git a/entc/integration/ent/user_create.go b/entc/integration/ent/user_create.go index 3b75ed3e8..688462fcd 100644 --- a/entc/integration/ent/user_create.go +++ b/entc/integration/ent/user_create.go @@ -318,6 +318,11 @@ func (uc *UserCreate) SetParent(u *User) *UserCreate { return uc.SetParentID(u.ID) } +// Mutation returns the UserMutation object of the builder. +func (uc *UserCreate) Mutation() *UserMutation { + return uc.mutation +} + // Save creates the User in the database. func (uc *UserCreate) Save(ctx context.Context) (*User, error) { if v, ok := uc.mutation.OptionalInt(); ok { diff --git a/entc/integration/ent/user_update.go b/entc/integration/ent/user_update.go index 419f54e7d..25d363c35 100644 --- a/entc/integration/ent/user_update.go +++ b/entc/integration/ent/user_update.go @@ -370,6 +370,11 @@ func (uu *UserUpdate) SetParent(u *User) *UserUpdate { return uu.SetParentID(u.ID) } +// Mutation returns the UserMutation object of the builder. +func (uu *UserUpdate) Mutation() *UserMutation { + return uu.mutation +} + // ClearCard clears the card edge to Card. func (uu *UserUpdate) ClearCard() *UserUpdate { uu.mutation.ClearCard() @@ -1445,6 +1450,11 @@ func (uuo *UserUpdateOne) SetParent(u *User) *UserUpdateOne { return uuo.SetParentID(u.ID) } +// Mutation returns the UserMutation object of the builder. +func (uuo *UserUpdateOne) Mutation() *UserMutation { + return uuo.mutation +} + // ClearCard clears the card edge to Card. func (uuo *UserUpdateOne) ClearCard() *UserUpdateOne { uuo.mutation.ClearCard() diff --git a/entc/integration/gremlin/ent/card_create.go b/entc/integration/gremlin/ent/card_create.go index 3bf914342..125408bfe 100644 --- a/entc/integration/gremlin/ent/card_create.go +++ b/entc/integration/gremlin/ent/card_create.go @@ -111,6 +111,11 @@ func (cc *CardCreate) AddSpec(s ...*Spec) *CardCreate { return cc.AddSpecIDs(ids...) } +// Mutation returns the CardMutation object of the builder. +func (cc *CardCreate) Mutation() *CardMutation { + return cc.mutation +} + // Save creates the Card in the database. func (cc *CardCreate) Save(ctx context.Context) (*Card, error) { if _, ok := cc.mutation.CreateTime(); !ok { diff --git a/entc/integration/gremlin/ent/card_update.go b/entc/integration/gremlin/ent/card_update.go index 259439b39..672bd2028 100644 --- a/entc/integration/gremlin/ent/card_update.go +++ b/entc/integration/gremlin/ent/card_update.go @@ -89,6 +89,11 @@ func (cu *CardUpdate) AddSpec(s ...*Spec) *CardUpdate { return cu.AddSpecIDs(ids...) } +// Mutation returns the CardMutation object of the builder. +func (cu *CardUpdate) Mutation() *CardMutation { + return cu.mutation +} + // ClearOwner clears the owner edge to User. func (cu *CardUpdate) ClearOwner() *CardUpdate { cu.mutation.ClearOwner() @@ -306,6 +311,11 @@ func (cuo *CardUpdateOne) AddSpec(s ...*Spec) *CardUpdateOne { return cuo.AddSpecIDs(ids...) } +// Mutation returns the CardMutation object of the builder. +func (cuo *CardUpdateOne) Mutation() *CardMutation { + return cuo.mutation +} + // ClearOwner clears the owner edge to User. func (cuo *CardUpdateOne) ClearOwner() *CardUpdateOne { cuo.mutation.ClearOwner() diff --git a/entc/integration/gremlin/ent/comment_create.go b/entc/integration/gremlin/ent/comment_create.go index c95672eac..41ddd8468 100644 --- a/entc/integration/gremlin/ent/comment_create.go +++ b/entc/integration/gremlin/ent/comment_create.go @@ -52,6 +52,11 @@ func (cc *CommentCreate) SetNillableNillableInt(i *int) *CommentCreate { return cc } +// Mutation returns the CommentMutation object of the builder. +func (cc *CommentCreate) Mutation() *CommentMutation { + return cc.mutation +} + // Save creates the Comment in the database. func (cc *CommentCreate) Save(ctx context.Context) (*Comment, error) { if _, ok := cc.mutation.UniqueInt(); !ok { diff --git a/entc/integration/gremlin/ent/comment_update.go b/entc/integration/gremlin/ent/comment_update.go index 3d80d832d..2b89d26fb 100644 --- a/entc/integration/gremlin/ent/comment_update.go +++ b/entc/integration/gremlin/ent/comment_update.go @@ -86,6 +86,11 @@ func (cu *CommentUpdate) ClearNillableInt() *CommentUpdate { return cu } +// Mutation returns the CommentMutation object of the builder. +func (cu *CommentUpdate) Mutation() *CommentMutation { + return cu.mutation +} + // Save executes the query and returns the number of rows/vertices matched by this operation. func (cu *CommentUpdate) Save(ctx context.Context) (int, error) { var ( @@ -283,6 +288,11 @@ func (cuo *CommentUpdateOne) ClearNillableInt() *CommentUpdateOne { return cuo } +// Mutation returns the CommentMutation object of the builder. +func (cuo *CommentUpdateOne) Mutation() *CommentMutation { + return cuo.mutation +} + // Save executes the query and returns the updated entity. func (cuo *CommentUpdateOne) Save(ctx context.Context) (*Comment, error) { var ( diff --git a/entc/integration/gremlin/ent/fieldtype_create.go b/entc/integration/gremlin/ent/fieldtype_create.go index 312dbb084..c122f3d41 100644 --- a/entc/integration/gremlin/ent/fieldtype_create.go +++ b/entc/integration/gremlin/ent/fieldtype_create.go @@ -499,6 +499,11 @@ func (ftc *FieldTypeCreate) SetNillableSchemaInt64(s *schema.Int64) *FieldTypeCr return ftc } +// Mutation returns the FieldTypeMutation object of the builder. +func (ftc *FieldTypeCreate) Mutation() *FieldTypeMutation { + return ftc.mutation +} + // Save creates the FieldType in the database. func (ftc *FieldTypeCreate) Save(ctx context.Context) (*FieldType, error) { if _, ok := ftc.mutation.Int(); !ok { diff --git a/entc/integration/gremlin/ent/fieldtype_update.go b/entc/integration/gremlin/ent/fieldtype_update.go index 320d892a6..d10b5296d 100644 --- a/entc/integration/gremlin/ent/fieldtype_update.go +++ b/entc/integration/gremlin/ent/fieldtype_update.go @@ -913,6 +913,11 @@ func (ftu *FieldTypeUpdate) ClearSchemaInt64() *FieldTypeUpdate { return ftu } +// Mutation returns the FieldTypeMutation object of the builder. +func (ftu *FieldTypeUpdate) Mutation() *FieldTypeMutation { + return ftu.mutation +} + // Save executes the query and returns the number of rows/vertices matched by this operation. func (ftu *FieldTypeUpdate) Save(ctx context.Context) (int, error) { if v, ok := ftu.mutation.ValidateOptionalInt32(); ok { @@ -2198,6 +2203,11 @@ func (ftuo *FieldTypeUpdateOne) ClearSchemaInt64() *FieldTypeUpdateOne { return ftuo } +// Mutation returns the FieldTypeMutation object of the builder. +func (ftuo *FieldTypeUpdateOne) Mutation() *FieldTypeMutation { + return ftuo.mutation +} + // Save executes the query and returns the updated entity. func (ftuo *FieldTypeUpdateOne) Save(ctx context.Context) (*FieldType, error) { if v, ok := ftuo.mutation.ValidateOptionalInt32(); ok { diff --git a/entc/integration/gremlin/ent/file_create.go b/entc/integration/gremlin/ent/file_create.go index 9676e38fe..9a06fd622 100644 --- a/entc/integration/gremlin/ent/file_create.go +++ b/entc/integration/gremlin/ent/file_create.go @@ -129,6 +129,11 @@ func (fc *FileCreate) AddField(f ...*FieldType) *FileCreate { return fc.AddFieldIDs(ids...) } +// Mutation returns the FileMutation object of the builder. +func (fc *FileCreate) Mutation() *FileMutation { + return fc.mutation +} + // Save creates the File in the database. func (fc *FileCreate) Save(ctx context.Context) (*File, error) { if _, ok := fc.mutation.Size(); !ok { diff --git a/entc/integration/gremlin/ent/file_update.go b/entc/integration/gremlin/ent/file_update.go index 809057714..62f4c57b5 100644 --- a/entc/integration/gremlin/ent/file_update.go +++ b/entc/integration/gremlin/ent/file_update.go @@ -155,6 +155,11 @@ func (fu *FileUpdate) AddField(f ...*FieldType) *FileUpdate { return fu.AddFieldIDs(ids...) } +// Mutation returns the FileMutation object of the builder. +func (fu *FileUpdate) Mutation() *FileMutation { + return fu.mutation +} + // ClearOwner clears the owner edge to User. func (fu *FileUpdate) ClearOwner() *FileUpdate { fu.mutation.ClearOwner() @@ -459,6 +464,11 @@ func (fuo *FileUpdateOne) AddField(f ...*FieldType) *FileUpdateOne { return fuo.AddFieldIDs(ids...) } +// Mutation returns the FileMutation object of the builder. +func (fuo *FileUpdateOne) Mutation() *FileMutation { + return fuo.mutation +} + // ClearOwner clears the owner edge to User. func (fuo *FileUpdateOne) ClearOwner() *FileUpdateOne { fuo.mutation.ClearOwner() diff --git a/entc/integration/gremlin/ent/filetype_create.go b/entc/integration/gremlin/ent/filetype_create.go index af6b5b84c..81d872cec 100644 --- a/entc/integration/gremlin/ent/filetype_create.go +++ b/entc/integration/gremlin/ent/filetype_create.go @@ -47,6 +47,11 @@ func (ftc *FileTypeCreate) AddFiles(f ...*File) *FileTypeCreate { return ftc.AddFileIDs(ids...) } +// Mutation returns the FileTypeMutation object of the builder. +func (ftc *FileTypeCreate) Mutation() *FileTypeMutation { + return ftc.mutation +} + // Save creates the FileType in the database. func (ftc *FileTypeCreate) Save(ctx context.Context) (*FileType, error) { if _, ok := ftc.mutation.Name(); !ok { diff --git a/entc/integration/gremlin/ent/filetype_update.go b/entc/integration/gremlin/ent/filetype_update.go index a80d1eb02..ccc277124 100644 --- a/entc/integration/gremlin/ent/filetype_update.go +++ b/entc/integration/gremlin/ent/filetype_update.go @@ -54,6 +54,11 @@ func (ftu *FileTypeUpdate) AddFiles(f ...*File) *FileTypeUpdate { return ftu.AddFileIDs(ids...) } +// Mutation returns the FileTypeMutation object of the builder. +func (ftu *FileTypeUpdate) Mutation() *FileTypeMutation { + return ftu.mutation +} + // RemoveFileIDs removes the files edge to File by ids. func (ftu *FileTypeUpdate) RemoveFileIDs(ids ...string) *FileTypeUpdate { ftu.mutation.RemoveFileIDs(ids...) @@ -210,6 +215,11 @@ func (ftuo *FileTypeUpdateOne) AddFiles(f ...*File) *FileTypeUpdateOne { return ftuo.AddFileIDs(ids...) } +// Mutation returns the FileTypeMutation object of the builder. +func (ftuo *FileTypeUpdateOne) Mutation() *FileTypeMutation { + return ftuo.mutation +} + // RemoveFileIDs removes the files edge to File by ids. func (ftuo *FileTypeUpdateOne) RemoveFileIDs(ids ...string) *FileTypeUpdateOne { ftuo.mutation.RemoveFileIDs(ids...) diff --git a/entc/integration/gremlin/ent/group_create.go b/entc/integration/gremlin/ent/group_create.go index 2a4ef4cbe..f2e69e7b0 100644 --- a/entc/integration/gremlin/ent/group_create.go +++ b/entc/integration/gremlin/ent/group_create.go @@ -138,6 +138,11 @@ func (gc *GroupCreate) SetInfo(g *GroupInfo) *GroupCreate { return gc.SetInfoID(g.ID) } +// Mutation returns the GroupMutation object of the builder. +func (gc *GroupCreate) Mutation() *GroupMutation { + return gc.mutation +} + // Save creates the Group in the database. func (gc *GroupCreate) Save(ctx context.Context) (*Group, error) { if _, ok := gc.mutation.Active(); !ok { diff --git a/entc/integration/gremlin/ent/group_update.go b/entc/integration/gremlin/ent/group_update.go index 1136ba6d6..c20e136bb 100644 --- a/entc/integration/gremlin/ent/group_update.go +++ b/entc/integration/gremlin/ent/group_update.go @@ -165,6 +165,11 @@ func (gu *GroupUpdate) SetInfo(g *GroupInfo) *GroupUpdate { return gu.SetInfoID(g.ID) } +// Mutation returns the GroupMutation object of the builder. +func (gu *GroupUpdate) Mutation() *GroupMutation { + return gu.mutation +} + // RemoveFileIDs removes the files edge to File by ids. func (gu *GroupUpdate) RemoveFileIDs(ids ...string) *GroupUpdate { gu.mutation.RemoveFileIDs(ids...) @@ -529,6 +534,11 @@ func (guo *GroupUpdateOne) SetInfo(g *GroupInfo) *GroupUpdateOne { return guo.SetInfoID(g.ID) } +// Mutation returns the GroupMutation object of the builder. +func (guo *GroupUpdateOne) Mutation() *GroupMutation { + return guo.mutation +} + // RemoveFileIDs removes the files edge to File by ids. func (guo *GroupUpdateOne) RemoveFileIDs(ids ...string) *GroupUpdateOne { guo.mutation.RemoveFileIDs(ids...) diff --git a/entc/integration/gremlin/ent/groupinfo_create.go b/entc/integration/gremlin/ent/groupinfo_create.go index 786089971..027cb9ae0 100644 --- a/entc/integration/gremlin/ent/groupinfo_create.go +++ b/entc/integration/gremlin/ent/groupinfo_create.go @@ -62,6 +62,11 @@ func (gic *GroupInfoCreate) AddGroups(g ...*Group) *GroupInfoCreate { return gic.AddGroupIDs(ids...) } +// Mutation returns the GroupInfoMutation object of the builder. +func (gic *GroupInfoCreate) Mutation() *GroupInfoMutation { + return gic.mutation +} + // Save creates the GroupInfo in the database. func (gic *GroupInfoCreate) Save(ctx context.Context) (*GroupInfo, error) { if _, ok := gic.mutation.Desc(); !ok { diff --git a/entc/integration/gremlin/ent/groupinfo_update.go b/entc/integration/gremlin/ent/groupinfo_update.go index e382b80d1..58354c3a1 100644 --- a/entc/integration/gremlin/ent/groupinfo_update.go +++ b/entc/integration/gremlin/ent/groupinfo_update.go @@ -76,6 +76,11 @@ func (giu *GroupInfoUpdate) AddGroups(g ...*Group) *GroupInfoUpdate { return giu.AddGroupIDs(ids...) } +// Mutation returns the GroupInfoMutation object of the builder. +func (giu *GroupInfoUpdate) Mutation() *GroupInfoMutation { + return giu.mutation +} + // RemoveGroupIDs removes the groups edge to Group by ids. func (giu *GroupInfoUpdate) RemoveGroupIDs(ids ...string) *GroupInfoUpdate { giu.mutation.RemoveGroupIDs(ids...) @@ -255,6 +260,11 @@ func (giuo *GroupInfoUpdateOne) AddGroups(g ...*Group) *GroupInfoUpdateOne { return giuo.AddGroupIDs(ids...) } +// Mutation returns the GroupInfoMutation object of the builder. +func (giuo *GroupInfoUpdateOne) Mutation() *GroupInfoMutation { + return giuo.mutation +} + // RemoveGroupIDs removes the groups edge to Group by ids. func (giuo *GroupInfoUpdateOne) RemoveGroupIDs(ids ...string) *GroupInfoUpdateOne { giuo.mutation.RemoveGroupIDs(ids...) diff --git a/entc/integration/gremlin/ent/item_create.go b/entc/integration/gremlin/ent/item_create.go index 32df06bc2..bc253bab3 100644 --- a/entc/integration/gremlin/ent/item_create.go +++ b/entc/integration/gremlin/ent/item_create.go @@ -23,6 +23,11 @@ type ItemCreate struct { hooks []Hook } +// Mutation returns the ItemMutation object of the builder. +func (ic *ItemCreate) Mutation() *ItemMutation { + return ic.mutation +} + // Save creates the Item in the database. func (ic *ItemCreate) Save(ctx context.Context) (*Item, error) { var ( diff --git a/entc/integration/gremlin/ent/item_update.go b/entc/integration/gremlin/ent/item_update.go index 55e1ee70c..949a2ef06 100644 --- a/entc/integration/gremlin/ent/item_update.go +++ b/entc/integration/gremlin/ent/item_update.go @@ -31,6 +31,11 @@ func (iu *ItemUpdate) Where(ps ...predicate.Item) *ItemUpdate { return iu } +// Mutation returns the ItemMutation object of the builder. +func (iu *ItemUpdate) Mutation() *ItemMutation { + return iu.mutation +} + // Save executes the query and returns the number of rows/vertices matched by this operation. func (iu *ItemUpdate) Save(ctx context.Context) (int, error) { var ( @@ -114,6 +119,11 @@ type ItemUpdateOne struct { mutation *ItemMutation } +// Mutation returns the ItemMutation object of the builder. +func (iuo *ItemUpdateOne) Mutation() *ItemMutation { + return iuo.mutation +} + // Save executes the query and returns the updated entity. func (iuo *ItemUpdateOne) Save(ctx context.Context) (*Item, error) { var ( diff --git a/entc/integration/gremlin/ent/node_create.go b/entc/integration/gremlin/ent/node_create.go index 7eebb909e..850ed6e22 100644 --- a/entc/integration/gremlin/ent/node_create.go +++ b/entc/integration/gremlin/ent/node_create.go @@ -77,6 +77,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 ( diff --git a/entc/integration/gremlin/ent/node_update.go b/entc/integration/gremlin/ent/node_update.go index 2ae798e9e..887dfa5a2 100644 --- a/entc/integration/gremlin/ent/node_update.go +++ b/entc/integration/gremlin/ent/node_update.go @@ -98,6 +98,11 @@ func (nu *NodeUpdate) SetNext(n *Node) *NodeUpdate { return nu.SetNextID(n.ID) } +// Mutation returns the NodeMutation object of the builder. +func (nu *NodeUpdate) Mutation() *NodeMutation { + return nu.mutation +} + // ClearPrev clears the prev edge to Node. func (nu *NodeUpdate) ClearPrev() *NodeUpdate { nu.mutation.ClearPrev() @@ -312,6 +317,11 @@ func (nuo *NodeUpdateOne) SetNext(n *Node) *NodeUpdateOne { return nuo.SetNextID(n.ID) } +// Mutation returns the NodeMutation object of the builder. +func (nuo *NodeUpdateOne) Mutation() *NodeMutation { + return nuo.mutation +} + // ClearPrev clears the prev edge to Node. func (nuo *NodeUpdateOne) ClearPrev() *NodeUpdateOne { nuo.mutation.ClearPrev() diff --git a/entc/integration/gremlin/ent/pet_create.go b/entc/integration/gremlin/ent/pet_create.go index e00350e59..9073e103c 100644 --- a/entc/integration/gremlin/ent/pet_create.go +++ b/entc/integration/gremlin/ent/pet_create.go @@ -71,6 +71,11 @@ func (pc *PetCreate) SetOwner(u *User) *PetCreate { return pc.SetOwnerID(u.ID) } +// Mutation returns the PetMutation object of the builder. +func (pc *PetCreate) Mutation() *PetMutation { + return pc.mutation +} + // Save creates the Pet in the database. func (pc *PetCreate) Save(ctx context.Context) (*Pet, error) { if _, ok := pc.mutation.Name(); !ok { diff --git a/entc/integration/gremlin/ent/pet_update.go b/entc/integration/gremlin/ent/pet_update.go index 4a1e5c40a..1b8aec791 100644 --- a/entc/integration/gremlin/ent/pet_update.go +++ b/entc/integration/gremlin/ent/pet_update.go @@ -78,6 +78,11 @@ func (pu *PetUpdate) SetOwner(u *User) *PetUpdate { return pu.SetOwnerID(u.ID) } +// Mutation returns the PetMutation object of the builder. +func (pu *PetUpdate) Mutation() *PetMutation { + return pu.mutation +} + // ClearTeam clears the team edge to User. func (pu *PetUpdate) ClearTeam() *PetUpdate { pu.mutation.ClearTeam() @@ -257,6 +262,11 @@ func (puo *PetUpdateOne) SetOwner(u *User) *PetUpdateOne { return puo.SetOwnerID(u.ID) } +// Mutation returns the PetMutation object of the builder. +func (puo *PetUpdateOne) Mutation() *PetMutation { + return puo.mutation +} + // ClearTeam clears the team edge to User. func (puo *PetUpdateOne) ClearTeam() *PetUpdateOne { puo.mutation.ClearTeam() diff --git a/entc/integration/gremlin/ent/spec_create.go b/entc/integration/gremlin/ent/spec_create.go index 363d875bd..5d4ff7a2d 100644 --- a/entc/integration/gremlin/ent/spec_create.go +++ b/entc/integration/gremlin/ent/spec_create.go @@ -38,6 +38,11 @@ func (sc *SpecCreate) AddCard(c ...*Card) *SpecCreate { return sc.AddCardIDs(ids...) } +// Mutation returns the SpecMutation object of the builder. +func (sc *SpecCreate) Mutation() *SpecMutation { + return sc.mutation +} + // Save creates the Spec in the database. func (sc *SpecCreate) Save(ctx context.Context) (*Spec, error) { var ( diff --git a/entc/integration/gremlin/ent/spec_update.go b/entc/integration/gremlin/ent/spec_update.go index 774636a97..75a6d70aa 100644 --- a/entc/integration/gremlin/ent/spec_update.go +++ b/entc/integration/gremlin/ent/spec_update.go @@ -47,6 +47,11 @@ func (su *SpecUpdate) AddCard(c ...*Card) *SpecUpdate { return su.AddCardIDs(ids...) } +// Mutation returns the SpecMutation object of the builder. +func (su *SpecUpdate) Mutation() *SpecMutation { + return su.mutation +} + // RemoveCardIDs removes the card edge to Card by ids. func (su *SpecUpdate) RemoveCardIDs(ids ...string) *SpecUpdate { su.mutation.RemoveCardIDs(ids...) @@ -171,6 +176,11 @@ func (suo *SpecUpdateOne) AddCard(c ...*Card) *SpecUpdateOne { return suo.AddCardIDs(ids...) } +// Mutation returns the SpecMutation object of the builder. +func (suo *SpecUpdateOne) Mutation() *SpecMutation { + return suo.mutation +} + // RemoveCardIDs removes the card edge to Card by ids. func (suo *SpecUpdateOne) RemoveCardIDs(ids ...string) *SpecUpdateOne { suo.mutation.RemoveCardIDs(ids...) diff --git a/entc/integration/gremlin/ent/user_create.go b/entc/integration/gremlin/ent/user_create.go index 0a722606e..dccbab147 100644 --- a/entc/integration/gremlin/ent/user_create.go +++ b/entc/integration/gremlin/ent/user_create.go @@ -317,6 +317,11 @@ func (uc *UserCreate) SetParent(u *User) *UserCreate { return uc.SetParentID(u.ID) } +// Mutation returns the UserMutation object of the builder. +func (uc *UserCreate) Mutation() *UserMutation { + return uc.mutation +} + // Save creates the User in the database. func (uc *UserCreate) Save(ctx context.Context) (*User, error) { if v, ok := uc.mutation.OptionalInt(); ok { diff --git a/entc/integration/gremlin/ent/user_update.go b/entc/integration/gremlin/ent/user_update.go index 5b08dfd38..fc27bc6c2 100644 --- a/entc/integration/gremlin/ent/user_update.go +++ b/entc/integration/gremlin/ent/user_update.go @@ -368,6 +368,11 @@ func (uu *UserUpdate) SetParent(u *User) *UserUpdate { return uu.SetParentID(u.ID) } +// Mutation returns the UserMutation object of the builder. +func (uu *UserUpdate) Mutation() *UserMutation { + return uu.mutation +} + // ClearCard clears the card edge to Card. func (uu *UserUpdate) ClearCard() *UserUpdate { uu.mutation.ClearCard() @@ -1109,6 +1114,11 @@ func (uuo *UserUpdateOne) SetParent(u *User) *UserUpdateOne { return uuo.SetParentID(u.ID) } +// Mutation returns the UserMutation object of the builder. +func (uuo *UserUpdateOne) Mutation() *UserMutation { + return uuo.mutation +} + // ClearCard clears the card edge to Card. func (uuo *UserUpdateOne) ClearCard() *UserUpdateOne { uuo.mutation.ClearCard() diff --git a/entc/integration/hooks/ent/card_create.go b/entc/integration/hooks/ent/card_create.go index 94cd87959..c0eed6b5a 100644 --- a/entc/integration/hooks/ent/card_create.go +++ b/entc/integration/hooks/ent/card_create.go @@ -85,6 +85,11 @@ func (cc *CardCreate) SetOwner(u *User) *CardCreate { return cc.SetOwnerID(u.ID) } +// Mutation returns the CardMutation object of the builder. +func (cc *CardCreate) Mutation() *CardMutation { + return cc.mutation +} + // Save creates the Card in the database. func (cc *CardCreate) Save(ctx context.Context) (*Card, error) { if _, ok := cc.mutation.Number(); !ok { diff --git a/entc/integration/hooks/ent/card_update.go b/entc/integration/hooks/ent/card_update.go index abd72ecf7..e1898baa1 100644 --- a/entc/integration/hooks/ent/card_update.go +++ b/entc/integration/hooks/ent/card_update.go @@ -86,6 +86,11 @@ func (cu *CardUpdate) SetOwner(u *User) *CardUpdate { return cu.SetOwnerID(u.ID) } +// Mutation returns the CardMutation object of the builder. +func (cu *CardUpdate) Mutation() *CardMutation { + return cu.mutation +} + // ClearOwner clears the owner edge to User. func (cu *CardUpdate) ClearOwner() *CardUpdate { cu.mutation.ClearOwner() @@ -288,6 +293,11 @@ func (cuo *CardUpdateOne) SetOwner(u *User) *CardUpdateOne { return cuo.SetOwnerID(u.ID) } +// Mutation returns the CardMutation object of the builder. +func (cuo *CardUpdateOne) Mutation() *CardMutation { + return cuo.mutation +} + // ClearOwner clears the owner edge to User. func (cuo *CardUpdateOne) ClearOwner() *CardUpdateOne { cuo.mutation.ClearOwner() diff --git a/entc/integration/hooks/ent/user_create.go b/entc/integration/hooks/ent/user_create.go index 2d8e64d04..4e7929285 100644 --- a/entc/integration/hooks/ent/user_create.go +++ b/entc/integration/hooks/ent/user_create.go @@ -93,6 +93,11 @@ func (uc *UserCreate) SetBestFriend(u *User) *UserCreate { return uc.SetBestFriendID(u.ID) } +// Mutation returns the UserMutation object of the builder. +func (uc *UserCreate) Mutation() *UserMutation { + return uc.mutation +} + // Save creates the User in the database. func (uc *UserCreate) Save(ctx context.Context) (*User, error) { if _, ok := uc.mutation.Version(); !ok { diff --git a/entc/integration/hooks/ent/user_update.go b/entc/integration/hooks/ent/user_update.go index 0b566b2cd..988f874b9 100644 --- a/entc/integration/hooks/ent/user_update.go +++ b/entc/integration/hooks/ent/user_update.go @@ -108,6 +108,11 @@ func (uu *UserUpdate) SetBestFriend(u *User) *UserUpdate { return uu.SetBestFriendID(u.ID) } +// Mutation returns the UserMutation object of the builder. +func (uu *UserUpdate) Mutation() *UserMutation { + return uu.mutation +} + // RemoveCardIDs removes the cards edge to Card by ids. func (uu *UserUpdate) RemoveCardIDs(ids ...int) *UserUpdate { uu.mutation.RemoveCardIDs(ids...) @@ -440,6 +445,11 @@ func (uuo *UserUpdateOne) SetBestFriend(u *User) *UserUpdateOne { return uuo.SetBestFriendID(u.ID) } +// Mutation returns the UserMutation object of the builder. +func (uuo *UserUpdateOne) Mutation() *UserMutation { + return uuo.mutation +} + // RemoveCardIDs removes the cards edge to Card by ids. func (uuo *UserUpdateOne) RemoveCardIDs(ids ...int) *UserUpdateOne { uuo.mutation.RemoveCardIDs(ids...) diff --git a/entc/integration/idtype/ent/user_create.go b/entc/integration/idtype/ent/user_create.go index 9e8449397..614eb4a84 100644 --- a/entc/integration/idtype/ent/user_create.go +++ b/entc/integration/idtype/ent/user_create.go @@ -78,6 +78,11 @@ func (uc *UserCreate) AddFollowing(u ...*User) *UserCreate { return uc.AddFollowingIDs(ids...) } +// Mutation returns the UserMutation object of the builder. +func (uc *UserCreate) Mutation() *UserMutation { + return uc.mutation +} + // Save creates the User in the database. func (uc *UserCreate) Save(ctx context.Context) (*User, error) { if _, ok := uc.mutation.Name(); !ok { diff --git a/entc/integration/idtype/ent/user_update.go b/entc/integration/idtype/ent/user_update.go index 7c9ce0c9a..1e90a4160 100644 --- a/entc/integration/idtype/ent/user_update.go +++ b/entc/integration/idtype/ent/user_update.go @@ -86,6 +86,11 @@ func (uu *UserUpdate) AddFollowing(u ...*User) *UserUpdate { return uu.AddFollowingIDs(ids...) } +// Mutation returns the UserMutation object of the builder. +func (uu *UserUpdate) Mutation() *UserMutation { + return uu.mutation +} + // ClearSpouse clears the spouse edge to User. func (uu *UserUpdate) ClearSpouse() *UserUpdate { uu.mutation.ClearSpouse() @@ -383,6 +388,11 @@ func (uuo *UserUpdateOne) AddFollowing(u ...*User) *UserUpdateOne { return uuo.AddFollowingIDs(ids...) } +// Mutation returns the UserMutation object of the builder. +func (uuo *UserUpdateOne) Mutation() *UserMutation { + return uuo.mutation +} + // ClearSpouse clears the spouse edge to User. func (uuo *UserUpdateOne) ClearSpouse() *UserUpdateOne { uuo.mutation.ClearSpouse() diff --git a/entc/integration/integration_test.go b/entc/integration/integration_test.go index 4c338f5eb..b3838cc37 100644 --- a/entc/integration/integration_test.go +++ b/entc/integration/integration_test.go @@ -115,6 +115,7 @@ var ( ImmutableValue, Sensitive, EagerLoading, + Mutation, } ) @@ -1065,6 +1066,36 @@ func NoSchemaChanges(t *testing.T, client *ent.Client) { require.NoError(t, err) } +func Mutation(t *testing.T, client *ent.Client) { + ctx := context.Background() + setName := func(ns interface{ SetName(string) }, name string) { + ns.SetName(name) + } + ub := client.User.Create().SetAge(30) + setName(ub.Mutation(), "a8m") + pb := client.Pet.Create() + setName(pb.Mutation(), "pedro") + + a8m := ub.SaveX(ctx) + require.Equal(t, "a8m", a8m.Name) + pedro := pb.SaveX(ctx) + require.Equal(t, "pedro", pedro.Name) + + setUsers := func(ms ...*ent.UserMutation) { + for _, m := range ms { + m.SetName("boring") + m.SetAge(30) + } + } + uu := a8m.Update() + ub = client.User.Create() + setUsers(ub.Mutation(), uu.Mutation()) + a8m = uu.SaveX(ctx) + usr := ub.SaveX(ctx) + require.Equal(t, "boring", a8m.Name) + require.Equal(t, "boring", usr.Name) +} + func drop(t *testing.T, client *ent.Client) { t.Log("drop data from database") ctx := context.Background() diff --git a/entc/integration/json/ent/user_create.go b/entc/integration/json/ent/user_create.go index 562f4b8ae..eccfcd3f3 100644 --- a/entc/integration/json/ent/user_create.go +++ b/entc/integration/json/ent/user_create.go @@ -61,6 +61,11 @@ func (uc *UserCreate) SetStrings(s []string) *UserCreate { return uc } +// Mutation returns the UserMutation object of the builder. +func (uc *UserCreate) Mutation() *UserMutation { + return uc.mutation +} + // Save creates the User in the database. func (uc *UserCreate) Save(ctx context.Context) (*User, error) { var ( diff --git a/entc/integration/json/ent/user_update.go b/entc/integration/json/ent/user_update.go index d4b2b47d5..0e8fea700 100644 --- a/entc/integration/json/ent/user_update.go +++ b/entc/integration/json/ent/user_update.go @@ -106,6 +106,11 @@ func (uu *UserUpdate) ClearStrings() *UserUpdate { return uu } +// Mutation returns the UserMutation object of the builder. +func (uu *UserUpdate) Mutation() *UserMutation { + return uu.mutation +} + // Save executes the query and returns the number of rows/vertices matched by this operation. func (uu *UserUpdate) Save(ctx context.Context) (int, error) { var ( @@ -343,6 +348,11 @@ func (uuo *UserUpdateOne) ClearStrings() *UserUpdateOne { return uuo } +// Mutation returns the UserMutation object of the builder. +func (uuo *UserUpdateOne) Mutation() *UserMutation { + return uuo.mutation +} + // Save executes the query and returns the updated entity. func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error) { var ( diff --git a/entc/integration/migrate/entv1/car_create.go b/entc/integration/migrate/entv1/car_create.go index cea29cec4..9bbd2e115 100644 --- a/entc/integration/migrate/entv1/car_create.go +++ b/entc/integration/migrate/entv1/car_create.go @@ -42,6 +42,11 @@ func (cc *CarCreate) SetOwner(u *User) *CarCreate { return cc.SetOwnerID(u.ID) } +// Mutation returns the CarMutation object of the builder. +func (cc *CarCreate) Mutation() *CarMutation { + return cc.mutation +} + // Save creates the Car in the database. func (cc *CarCreate) Save(ctx context.Context) (*Car, error) { var ( diff --git a/entc/integration/migrate/entv1/car_update.go b/entc/integration/migrate/entv1/car_update.go index 7432253c9..2eb1eb65f 100644 --- a/entc/integration/migrate/entv1/car_update.go +++ b/entc/integration/migrate/entv1/car_update.go @@ -51,6 +51,11 @@ func (cu *CarUpdate) SetOwner(u *User) *CarUpdate { return cu.SetOwnerID(u.ID) } +// Mutation returns the CarMutation object of the builder. +func (cu *CarUpdate) Mutation() *CarMutation { + return cu.mutation +} + // ClearOwner clears the owner edge to User. func (cu *CarUpdate) ClearOwner() *CarUpdate { cu.mutation.ClearOwner() @@ -199,6 +204,11 @@ func (cuo *CarUpdateOne) SetOwner(u *User) *CarUpdateOne { return cuo.SetOwnerID(u.ID) } +// Mutation returns the CarMutation object of the builder. +func (cuo *CarUpdateOne) Mutation() *CarMutation { + return cuo.mutation +} + // ClearOwner clears the owner edge to User. func (cuo *CarUpdateOne) ClearOwner() *CarUpdateOne { cuo.mutation.ClearOwner() diff --git a/entc/integration/migrate/entv1/user_create.go b/entc/integration/migrate/entv1/user_create.go index 1a154e3ba..2b860f269 100644 --- a/entc/integration/migrate/entv1/user_create.go +++ b/entc/integration/migrate/entv1/user_create.go @@ -168,6 +168,11 @@ func (uc *UserCreate) SetCar(c *Car) *UserCreate { return uc.SetCarID(c.ID) } +// Mutation returns the UserMutation object of the builder. +func (uc *UserCreate) Mutation() *UserMutation { + return uc.mutation +} + // Save creates the User in the database. func (uc *UserCreate) Save(ctx context.Context) (*User, error) { if _, ok := uc.mutation.Age(); !ok { diff --git a/entc/integration/migrate/entv1/user_update.go b/entc/integration/migrate/entv1/user_update.go index dfd4befa3..954f08cf3 100644 --- a/entc/integration/migrate/entv1/user_update.go +++ b/entc/integration/migrate/entv1/user_update.go @@ -201,6 +201,11 @@ func (uu *UserUpdate) SetCar(c *Car) *UserUpdate { return uu.SetCarID(c.ID) } +// Mutation returns the UserMutation object of the builder. +func (uu *UserUpdate) Mutation() *UserMutation { + return uu.mutation +} + // ClearParent clears the parent edge to User. func (uu *UserUpdate) ClearParent() *UserUpdate { uu.mutation.ClearParent() @@ -724,6 +729,11 @@ func (uuo *UserUpdateOne) SetCar(c *Car) *UserUpdateOne { return uuo.SetCarID(c.ID) } +// Mutation returns the UserMutation object of the builder. +func (uuo *UserUpdateOne) Mutation() *UserMutation { + return uuo.mutation +} + // ClearParent clears the parent edge to User. func (uuo *UserUpdateOne) ClearParent() *UserUpdateOne { uuo.mutation.ClearParent() diff --git a/entc/integration/migrate/entv2/car_create.go b/entc/integration/migrate/entv2/car_create.go index 7f800cf94..6e8d29a0a 100644 --- a/entc/integration/migrate/entv2/car_create.go +++ b/entc/integration/migrate/entv2/car_create.go @@ -42,6 +42,11 @@ func (cc *CarCreate) SetOwner(u *User) *CarCreate { return cc.SetOwnerID(u.ID) } +// Mutation returns the CarMutation object of the builder. +func (cc *CarCreate) Mutation() *CarMutation { + return cc.mutation +} + // Save creates the Car in the database. func (cc *CarCreate) Save(ctx context.Context) (*Car, error) { var ( diff --git a/entc/integration/migrate/entv2/car_update.go b/entc/integration/migrate/entv2/car_update.go index 2b5907fb8..5667d5156 100644 --- a/entc/integration/migrate/entv2/car_update.go +++ b/entc/integration/migrate/entv2/car_update.go @@ -51,6 +51,11 @@ func (cu *CarUpdate) SetOwner(u *User) *CarUpdate { return cu.SetOwnerID(u.ID) } +// Mutation returns the CarMutation object of the builder. +func (cu *CarUpdate) Mutation() *CarMutation { + return cu.mutation +} + // ClearOwner clears the owner edge to User. func (cu *CarUpdate) ClearOwner() *CarUpdate { cu.mutation.ClearOwner() @@ -199,6 +204,11 @@ func (cuo *CarUpdateOne) SetOwner(u *User) *CarUpdateOne { return cuo.SetOwnerID(u.ID) } +// Mutation returns the CarMutation object of the builder. +func (cuo *CarUpdateOne) Mutation() *CarMutation { + return cuo.mutation +} + // ClearOwner clears the owner edge to User. func (cuo *CarUpdateOne) ClearOwner() *CarUpdateOne { cuo.mutation.ClearOwner() diff --git a/entc/integration/migrate/entv2/group_create.go b/entc/integration/migrate/entv2/group_create.go index 5c343c5e8..5c2373df5 100644 --- a/entc/integration/migrate/entv2/group_create.go +++ b/entc/integration/migrate/entv2/group_create.go @@ -22,6 +22,11 @@ type GroupCreate struct { hooks []Hook } +// Mutation returns the GroupMutation object of the builder. +func (gc *GroupCreate) Mutation() *GroupMutation { + return gc.mutation +} + // Save creates the Group in the database. func (gc *GroupCreate) Save(ctx context.Context) (*Group, error) { var ( diff --git a/entc/integration/migrate/entv2/group_update.go b/entc/integration/migrate/entv2/group_update.go index d531bd4cb..109174cf2 100644 --- a/entc/integration/migrate/entv2/group_update.go +++ b/entc/integration/migrate/entv2/group_update.go @@ -31,6 +31,11 @@ func (gu *GroupUpdate) Where(ps ...predicate.Group) *GroupUpdate { return gu } +// Mutation returns the GroupMutation object of the builder. +func (gu *GroupUpdate) Mutation() *GroupMutation { + return gu.mutation +} + // Save executes the query and returns the number of rows/vertices matched by this operation. func (gu *GroupUpdate) Save(ctx context.Context) (int, error) { var ( @@ -118,6 +123,11 @@ type GroupUpdateOne struct { mutation *GroupMutation } +// Mutation returns the GroupMutation object of the builder. +func (guo *GroupUpdateOne) Mutation() *GroupMutation { + return guo.mutation +} + // Save executes the query and returns the updated entity. func (guo *GroupUpdateOne) Save(ctx context.Context) (*Group, error) { var ( diff --git a/entc/integration/migrate/entv2/pet_create.go b/entc/integration/migrate/entv2/pet_create.go index 5bb1373f6..1f54f306f 100644 --- a/entc/integration/migrate/entv2/pet_create.go +++ b/entc/integration/migrate/entv2/pet_create.go @@ -22,6 +22,11 @@ type PetCreate struct { hooks []Hook } +// Mutation returns the PetMutation object of the builder. +func (pc *PetCreate) Mutation() *PetMutation { + return pc.mutation +} + // Save creates the Pet in the database. func (pc *PetCreate) Save(ctx context.Context) (*Pet, error) { var ( diff --git a/entc/integration/migrate/entv2/pet_update.go b/entc/integration/migrate/entv2/pet_update.go index e450fe4d7..cb5cebd53 100644 --- a/entc/integration/migrate/entv2/pet_update.go +++ b/entc/integration/migrate/entv2/pet_update.go @@ -31,6 +31,11 @@ func (pu *PetUpdate) Where(ps ...predicate.Pet) *PetUpdate { return pu } +// Mutation returns the PetMutation object of the builder. +func (pu *PetUpdate) Mutation() *PetMutation { + return pu.mutation +} + // Save executes the query and returns the number of rows/vertices matched by this operation. func (pu *PetUpdate) Save(ctx context.Context) (int, error) { var ( @@ -118,6 +123,11 @@ type PetUpdateOne struct { mutation *PetMutation } +// Mutation returns the PetMutation object of the builder. +func (puo *PetUpdateOne) Mutation() *PetMutation { + return puo.mutation +} + // Save executes the query and returns the updated entity. func (puo *PetUpdateOne) Save(ctx context.Context) (*Pet, error) { var ( diff --git a/entc/integration/migrate/entv2/user_create.go b/entc/integration/migrate/entv2/user_create.go index 5b0c6db8e..29119bd38 100644 --- a/entc/integration/migrate/entv2/user_create.go +++ b/entc/integration/migrate/entv2/user_create.go @@ -151,6 +151,11 @@ func (uc *UserCreate) SetPets(p *Pet) *UserCreate { return uc.SetPetsID(p.ID) } +// Mutation returns the UserMutation object of the builder. +func (uc *UserCreate) Mutation() *UserMutation { + return uc.mutation +} + // Save creates the User in the database. func (uc *UserCreate) Save(ctx context.Context) (*User, error) { if _, ok := uc.mutation.Age(); !ok { diff --git a/entc/integration/migrate/entv2/user_update.go b/entc/integration/migrate/entv2/user_update.go index 2231924df..ea7a7cafa 100644 --- a/entc/integration/migrate/entv2/user_update.go +++ b/entc/integration/migrate/entv2/user_update.go @@ -184,6 +184,11 @@ func (uu *UserUpdate) SetPets(p *Pet) *UserUpdate { return uu.SetPetsID(p.ID) } +// Mutation returns the UserMutation object of the builder. +func (uu *UserUpdate) Mutation() *UserMutation { + return uu.mutation +} + // RemoveCarIDs removes the car edge to Car by ids. func (uu *UserUpdate) RemoveCarIDs(ids ...int) *UserUpdate { uu.mutation.RemoveCarIDs(ids...) @@ -616,6 +621,11 @@ func (uuo *UserUpdateOne) SetPets(p *Pet) *UserUpdateOne { return uuo.SetPetsID(p.ID) } +// Mutation returns the UserMutation object of the builder. +func (uuo *UserUpdateOne) Mutation() *UserMutation { + return uuo.mutation +} + // RemoveCarIDs removes the car edge to Car by ids. func (uuo *UserUpdateOne) RemoveCarIDs(ids ...int) *UserUpdateOne { uuo.mutation.RemoveCarIDs(ids...) diff --git a/entc/integration/privacy/ent/galaxy_create.go b/entc/integration/privacy/ent/galaxy_create.go index 581999233..afc9f48c9 100644 --- a/entc/integration/privacy/ent/galaxy_create.go +++ b/entc/integration/privacy/ent/galaxy_create.go @@ -51,6 +51,11 @@ func (gc *GalaxyCreate) AddPlanets(p ...*Planet) *GalaxyCreate { return gc.AddPlanetIDs(ids...) } +// Mutation returns the GalaxyMutation object of the builder. +func (gc *GalaxyCreate) Mutation() *GalaxyMutation { + return gc.mutation +} + // Save creates the Galaxy in the database. func (gc *GalaxyCreate) Save(ctx context.Context) (*Galaxy, error) { if _, ok := gc.mutation.Name(); !ok { diff --git a/entc/integration/privacy/ent/galaxy_update.go b/entc/integration/privacy/ent/galaxy_update.go index 4e58ab86a..85a595fcd 100644 --- a/entc/integration/privacy/ent/galaxy_update.go +++ b/entc/integration/privacy/ent/galaxy_update.go @@ -59,6 +59,11 @@ func (gu *GalaxyUpdate) AddPlanets(p ...*Planet) *GalaxyUpdate { return gu.AddPlanetIDs(ids...) } +// Mutation returns the GalaxyMutation object of the builder. +func (gu *GalaxyUpdate) Mutation() *GalaxyMutation { + return gu.mutation +} + // RemovePlanetIDs removes the planets edge to Planet by ids. func (gu *GalaxyUpdate) RemovePlanetIDs(ids ...int) *GalaxyUpdate { gu.mutation.RemovePlanetIDs(ids...) @@ -251,6 +256,11 @@ func (guo *GalaxyUpdateOne) AddPlanets(p ...*Planet) *GalaxyUpdateOne { return guo.AddPlanetIDs(ids...) } +// Mutation returns the GalaxyMutation object of the builder. +func (guo *GalaxyUpdateOne) Mutation() *GalaxyMutation { + return guo.mutation +} + // RemovePlanetIDs removes the planets edge to Planet by ids. func (guo *GalaxyUpdateOne) RemovePlanetIDs(ids ...int) *GalaxyUpdateOne { guo.mutation.RemovePlanetIDs(ids...) diff --git a/entc/integration/privacy/ent/planet_create.go b/entc/integration/privacy/ent/planet_create.go index 69b3701e0..463ba1d2e 100644 --- a/entc/integration/privacy/ent/planet_create.go +++ b/entc/integration/privacy/ent/planet_create.go @@ -58,6 +58,11 @@ func (pc *PlanetCreate) AddNeighbors(p ...*Planet) *PlanetCreate { return pc.AddNeighborIDs(ids...) } +// Mutation returns the PlanetMutation object of the builder. +func (pc *PlanetCreate) Mutation() *PlanetMutation { + return pc.mutation +} + // Save creates the Planet in the database. func (pc *PlanetCreate) Save(ctx context.Context) (*Planet, error) { if _, ok := pc.mutation.Name(); !ok { diff --git a/entc/integration/privacy/ent/planet_update.go b/entc/integration/privacy/ent/planet_update.go index 101e88286..6ec80025d 100644 --- a/entc/integration/privacy/ent/planet_update.go +++ b/entc/integration/privacy/ent/planet_update.go @@ -73,6 +73,11 @@ func (pu *PlanetUpdate) AddNeighbors(p ...*Planet) *PlanetUpdate { return pu.AddNeighborIDs(ids...) } +// Mutation returns the PlanetMutation object of the builder. +func (pu *PlanetUpdate) Mutation() *PlanetMutation { + return pu.mutation +} + // RemoveNeighborIDs removes the neighbors edge to Planet by ids. func (pu *PlanetUpdate) RemoveNeighborIDs(ids ...int) *PlanetUpdate { pu.mutation.RemoveNeighborIDs(ids...) @@ -276,6 +281,11 @@ func (puo *PlanetUpdateOne) AddNeighbors(p ...*Planet) *PlanetUpdateOne { return puo.AddNeighborIDs(ids...) } +// Mutation returns the PlanetMutation object of the builder. +func (puo *PlanetUpdateOne) Mutation() *PlanetMutation { + return puo.mutation +} + // RemoveNeighborIDs removes the neighbors edge to Planet by ids. func (puo *PlanetUpdateOne) RemoveNeighborIDs(ids ...int) *PlanetUpdateOne { puo.mutation.RemoveNeighborIDs(ids...) diff --git a/entc/integration/template/ent/group_create.go b/entc/integration/template/ent/group_create.go index 8d41e5dd1..2fdb9b01b 100644 --- a/entc/integration/template/ent/group_create.go +++ b/entc/integration/template/ent/group_create.go @@ -29,6 +29,11 @@ func (gc *GroupCreate) SetMaxUsers(i int) *GroupCreate { return gc } +// Mutation returns the GroupMutation object of the builder. +func (gc *GroupCreate) Mutation() *GroupMutation { + return gc.mutation +} + // Save creates the Group in the database. func (gc *GroupCreate) Save(ctx context.Context) (*Group, error) { if _, ok := gc.mutation.MaxUsers(); !ok { diff --git a/entc/integration/template/ent/group_update.go b/entc/integration/template/ent/group_update.go index 1ef902b82..31e19152a 100644 --- a/entc/integration/template/ent/group_update.go +++ b/entc/integration/template/ent/group_update.go @@ -44,6 +44,11 @@ func (gu *GroupUpdate) AddMaxUsers(i int) *GroupUpdate { return gu } +// Mutation returns the GroupMutation object of the builder. +func (gu *GroupUpdate) Mutation() *GroupMutation { + return gu.mutation +} + // Save executes the query and returns the number of rows/vertices matched by this operation. func (gu *GroupUpdate) Save(ctx context.Context) (int, error) { var ( @@ -158,6 +163,11 @@ func (guo *GroupUpdateOne) AddMaxUsers(i int) *GroupUpdateOne { return guo } +// Mutation returns the GroupMutation object of the builder. +func (guo *GroupUpdateOne) Mutation() *GroupMutation { + return guo.mutation +} + // Save executes the query and returns the updated entity. func (guo *GroupUpdateOne) Save(ctx context.Context) (*Group, error) { var ( diff --git a/entc/integration/template/ent/pet_create.go b/entc/integration/template/ent/pet_create.go index 6702121e5..636ec16c8 100644 --- a/entc/integration/template/ent/pet_create.go +++ b/entc/integration/template/ent/pet_create.go @@ -64,6 +64,11 @@ func (pc *PetCreate) SetOwner(u *User) *PetCreate { return pc.SetOwnerID(u.ID) } +// Mutation returns the PetMutation object of the builder. +func (pc *PetCreate) Mutation() *PetMutation { + return pc.mutation +} + // Save creates the Pet in the database. func (pc *PetCreate) Save(ctx context.Context) (*Pet, error) { if _, ok := pc.mutation.Age(); !ok { diff --git a/entc/integration/template/ent/pet_update.go b/entc/integration/template/ent/pet_update.go index 0adc702d9..525fed538 100644 --- a/entc/integration/template/ent/pet_update.go +++ b/entc/integration/template/ent/pet_update.go @@ -85,6 +85,11 @@ func (pu *PetUpdate) SetOwner(u *User) *PetUpdate { return pu.SetOwnerID(u.ID) } +// Mutation returns the PetMutation object of the builder. +func (pu *PetUpdate) Mutation() *PetMutation { + return pu.mutation +} + // ClearOwner clears the owner edge to User. func (pu *PetUpdate) ClearOwner() *PetUpdate { pu.mutation.ClearOwner() @@ -293,6 +298,11 @@ func (puo *PetUpdateOne) SetOwner(u *User) *PetUpdateOne { return puo.SetOwnerID(u.ID) } +// Mutation returns the PetMutation object of the builder. +func (puo *PetUpdateOne) Mutation() *PetMutation { + return puo.mutation +} + // ClearOwner clears the owner edge to User. func (puo *PetUpdateOne) ClearOwner() *PetUpdateOne { puo.mutation.ClearOwner() diff --git a/entc/integration/template/ent/user_create.go b/entc/integration/template/ent/user_create.go index 740ed6ec9..8780d37aa 100644 --- a/entc/integration/template/ent/user_create.go +++ b/entc/integration/template/ent/user_create.go @@ -60,6 +60,11 @@ func (uc *UserCreate) AddFriends(u ...*User) *UserCreate { return uc.AddFriendIDs(ids...) } +// Mutation returns the UserMutation object of the builder. +func (uc *UserCreate) Mutation() *UserMutation { + return uc.mutation +} + // Save creates the User in the database. func (uc *UserCreate) Save(ctx context.Context) (*User, error) { if _, ok := uc.mutation.Name(); !ok { diff --git a/entc/integration/template/ent/user_update.go b/entc/integration/template/ent/user_update.go index 52a84ae35..c3c55c00b 100644 --- a/entc/integration/template/ent/user_update.go +++ b/entc/integration/template/ent/user_update.go @@ -68,6 +68,11 @@ func (uu *UserUpdate) AddFriends(u ...*User) *UserUpdate { return uu.AddFriendIDs(ids...) } +// Mutation returns the UserMutation object of the builder. +func (uu *UserUpdate) Mutation() *UserMutation { + return uu.mutation +} + // RemovePetIDs removes the pets edge to Pet by ids. func (uu *UserUpdate) RemovePetIDs(ids ...int) *UserUpdate { uu.mutation.RemovePetIDs(ids...) @@ -305,6 +310,11 @@ func (uuo *UserUpdateOne) AddFriends(u ...*User) *UserUpdateOne { return uuo.AddFriendIDs(ids...) } +// Mutation returns the UserMutation object of the builder. +func (uuo *UserUpdateOne) Mutation() *UserMutation { + return uuo.mutation +} + // RemovePetIDs removes the pets edge to Pet by ids. func (uuo *UserUpdateOne) RemovePetIDs(ids ...int) *UserUpdateOne { uuo.mutation.RemovePetIDs(ids...) diff --git a/examples/edgeindex/ent/city_create.go b/examples/edgeindex/ent/city_create.go index 1932a9bf1..f49522b93 100644 --- a/examples/edgeindex/ent/city_create.go +++ b/examples/edgeindex/ent/city_create.go @@ -45,6 +45,11 @@ func (cc *CityCreate) AddStreets(s ...*Street) *CityCreate { return cc.AddStreetIDs(ids...) } +// Mutation returns the CityMutation object of the builder. +func (cc *CityCreate) Mutation() *CityMutation { + return cc.mutation +} + // Save creates the City in the database. func (cc *CityCreate) Save(ctx context.Context) (*City, error) { if _, ok := cc.mutation.Name(); !ok { diff --git a/examples/edgeindex/ent/city_update.go b/examples/edgeindex/ent/city_update.go index 329364d75..a64b79984 100644 --- a/examples/edgeindex/ent/city_update.go +++ b/examples/edgeindex/ent/city_update.go @@ -53,6 +53,11 @@ func (cu *CityUpdate) AddStreets(s ...*Street) *CityUpdate { return cu.AddStreetIDs(ids...) } +// Mutation returns the CityMutation object of the builder. +func (cu *CityUpdate) Mutation() *CityMutation { + return cu.mutation +} + // RemoveStreetIDs removes the streets edge to Street by ids. func (cu *CityUpdate) RemoveStreetIDs(ids ...int) *CityUpdate { cu.mutation.RemoveStreetIDs(ids...) @@ -222,6 +227,11 @@ func (cuo *CityUpdateOne) AddStreets(s ...*Street) *CityUpdateOne { return cuo.AddStreetIDs(ids...) } +// Mutation returns the CityMutation object of the builder. +func (cuo *CityUpdateOne) Mutation() *CityMutation { + return cuo.mutation +} + // RemoveStreetIDs removes the streets edge to Street by ids. func (cuo *CityUpdateOne) RemoveStreetIDs(ids ...int) *CityUpdateOne { cuo.mutation.RemoveStreetIDs(ids...) diff --git a/examples/edgeindex/ent/street_create.go b/examples/edgeindex/ent/street_create.go index 8c14c62f1..74f8ceb1b 100644 --- a/examples/edgeindex/ent/street_create.go +++ b/examples/edgeindex/ent/street_create.go @@ -49,6 +49,11 @@ func (sc *StreetCreate) SetCity(c *City) *StreetCreate { return sc.SetCityID(c.ID) } +// Mutation returns the StreetMutation object of the builder. +func (sc *StreetCreate) Mutation() *StreetMutation { + return sc.mutation +} + // Save creates the Street in the database. func (sc *StreetCreate) Save(ctx context.Context) (*Street, error) { if _, ok := sc.mutation.Name(); !ok { diff --git a/examples/edgeindex/ent/street_update.go b/examples/edgeindex/ent/street_update.go index 2f2cef76d..9bfe171d0 100644 --- a/examples/edgeindex/ent/street_update.go +++ b/examples/edgeindex/ent/street_update.go @@ -57,6 +57,11 @@ func (su *StreetUpdate) SetCity(c *City) *StreetUpdate { return su.SetCityID(c.ID) } +// Mutation returns the StreetMutation object of the builder. +func (su *StreetUpdate) Mutation() *StreetMutation { + return su.mutation +} + // ClearCity clears the city edge to City. func (su *StreetUpdate) ClearCity() *StreetUpdate { su.mutation.ClearCity() @@ -218,6 +223,11 @@ func (suo *StreetUpdateOne) SetCity(c *City) *StreetUpdateOne { return suo.SetCityID(c.ID) } +// Mutation returns the StreetMutation object of the builder. +func (suo *StreetUpdateOne) Mutation() *StreetMutation { + return suo.mutation +} + // ClearCity clears the city edge to City. func (suo *StreetUpdateOne) ClearCity() *StreetUpdateOne { suo.mutation.ClearCity() diff --git a/examples/entcpkg/ent/user_create.go b/examples/entcpkg/ent/user_create.go index f1af19227..5a26fc310 100644 --- a/examples/entcpkg/ent/user_create.go +++ b/examples/entcpkg/ent/user_create.go @@ -22,6 +22,11 @@ type UserCreate struct { hooks []Hook } +// Mutation returns the UserMutation object of the builder. +func (uc *UserCreate) Mutation() *UserMutation { + return uc.mutation +} + // Save creates the User in the database. func (uc *UserCreate) Save(ctx context.Context) (*User, error) { var ( diff --git a/examples/entcpkg/ent/user_update.go b/examples/entcpkg/ent/user_update.go index 16d6cf79d..5d7ebd37f 100644 --- a/examples/entcpkg/ent/user_update.go +++ b/examples/entcpkg/ent/user_update.go @@ -31,6 +31,11 @@ func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate { return uu } +// Mutation returns the UserMutation object of the builder. +func (uu *UserUpdate) Mutation() *UserMutation { + return uu.mutation +} + // Save executes the query and returns the number of rows/vertices matched by this operation. func (uu *UserUpdate) Save(ctx context.Context) (int, error) { var ( @@ -118,6 +123,11 @@ type UserUpdateOne struct { mutation *UserMutation } +// Mutation returns the UserMutation object of the builder. +func (uuo *UserUpdateOne) Mutation() *UserMutation { + return uuo.mutation +} + // Save executes the query and returns the updated entity. func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error) { var ( diff --git a/examples/m2m2types/ent/group_create.go b/examples/m2m2types/ent/group_create.go index bc44e3bb4..155361b83 100644 --- a/examples/m2m2types/ent/group_create.go +++ b/examples/m2m2types/ent/group_create.go @@ -45,6 +45,11 @@ func (gc *GroupCreate) AddUsers(u ...*User) *GroupCreate { return gc.AddUserIDs(ids...) } +// Mutation returns the GroupMutation object of the builder. +func (gc *GroupCreate) Mutation() *GroupMutation { + return gc.mutation +} + // Save creates the Group in the database. func (gc *GroupCreate) Save(ctx context.Context) (*Group, error) { if _, ok := gc.mutation.Name(); !ok { diff --git a/examples/m2m2types/ent/group_update.go b/examples/m2m2types/ent/group_update.go index a7d03b412..4b9626708 100644 --- a/examples/m2m2types/ent/group_update.go +++ b/examples/m2m2types/ent/group_update.go @@ -53,6 +53,11 @@ func (gu *GroupUpdate) AddUsers(u ...*User) *GroupUpdate { return gu.AddUserIDs(ids...) } +// Mutation returns the GroupMutation object of the builder. +func (gu *GroupUpdate) Mutation() *GroupMutation { + return gu.mutation +} + // RemoveUserIDs removes the users edge to User by ids. func (gu *GroupUpdate) RemoveUserIDs(ids ...int) *GroupUpdate { gu.mutation.RemoveUserIDs(ids...) @@ -222,6 +227,11 @@ func (guo *GroupUpdateOne) AddUsers(u ...*User) *GroupUpdateOne { return guo.AddUserIDs(ids...) } +// Mutation returns the GroupMutation object of the builder. +func (guo *GroupUpdateOne) Mutation() *GroupMutation { + return guo.mutation +} + // RemoveUserIDs removes the users edge to User by ids. func (guo *GroupUpdateOne) RemoveUserIDs(ids ...int) *GroupUpdateOne { guo.mutation.RemoveUserIDs(ids...) diff --git a/examples/m2m2types/ent/user_create.go b/examples/m2m2types/ent/user_create.go index 0f763b83b..46ef5e380 100644 --- a/examples/m2m2types/ent/user_create.go +++ b/examples/m2m2types/ent/user_create.go @@ -51,6 +51,11 @@ func (uc *UserCreate) AddGroups(g ...*Group) *UserCreate { return uc.AddGroupIDs(ids...) } +// Mutation returns the UserMutation object of the builder. +func (uc *UserCreate) Mutation() *UserMutation { + return uc.mutation +} + // Save creates the User in the database. func (uc *UserCreate) Save(ctx context.Context) (*User, error) { if _, ok := uc.mutation.Age(); !ok { diff --git a/examples/m2m2types/ent/user_update.go b/examples/m2m2types/ent/user_update.go index bb95a1d70..b67b3dad0 100644 --- a/examples/m2m2types/ent/user_update.go +++ b/examples/m2m2types/ent/user_update.go @@ -66,6 +66,11 @@ func (uu *UserUpdate) AddGroups(g ...*Group) *UserUpdate { return uu.AddGroupIDs(ids...) } +// Mutation returns the UserMutation object of the builder. +func (uu *UserUpdate) Mutation() *UserMutation { + return uu.mutation +} + // RemoveGroupIDs removes the groups edge to Group by ids. func (uu *UserUpdate) RemoveGroupIDs(ids ...int) *UserUpdate { uu.mutation.RemoveGroupIDs(ids...) @@ -262,6 +267,11 @@ func (uuo *UserUpdateOne) AddGroups(g ...*Group) *UserUpdateOne { return uuo.AddGroupIDs(ids...) } +// Mutation returns the UserMutation object of the builder. +func (uuo *UserUpdateOne) Mutation() *UserMutation { + return uuo.mutation +} + // RemoveGroupIDs removes the groups edge to Group by ids. func (uuo *UserUpdateOne) RemoveGroupIDs(ids ...int) *UserUpdateOne { uuo.mutation.RemoveGroupIDs(ids...) diff --git a/examples/m2mbidi/ent/user_create.go b/examples/m2mbidi/ent/user_create.go index 24de04206..07b6d3e0a 100644 --- a/examples/m2mbidi/ent/user_create.go +++ b/examples/m2mbidi/ent/user_create.go @@ -50,6 +50,11 @@ func (uc *UserCreate) AddFriends(u ...*User) *UserCreate { return uc.AddFriendIDs(ids...) } +// Mutation returns the UserMutation object of the builder. +func (uc *UserCreate) Mutation() *UserMutation { + return uc.mutation +} + // Save creates the User in the database. func (uc *UserCreate) Save(ctx context.Context) (*User, error) { if _, ok := uc.mutation.Age(); !ok { diff --git a/examples/m2mbidi/ent/user_update.go b/examples/m2mbidi/ent/user_update.go index f72799b8a..10c5abf71 100644 --- a/examples/m2mbidi/ent/user_update.go +++ b/examples/m2mbidi/ent/user_update.go @@ -65,6 +65,11 @@ func (uu *UserUpdate) AddFriends(u ...*User) *UserUpdate { return uu.AddFriendIDs(ids...) } +// Mutation returns the UserMutation object of the builder. +func (uu *UserUpdate) Mutation() *UserMutation { + return uu.mutation +} + // RemoveFriendIDs removes the friends edge to User by ids. func (uu *UserUpdate) RemoveFriendIDs(ids ...int) *UserUpdate { uu.mutation.RemoveFriendIDs(ids...) @@ -261,6 +266,11 @@ func (uuo *UserUpdateOne) AddFriends(u ...*User) *UserUpdateOne { return uuo.AddFriendIDs(ids...) } +// Mutation returns the UserMutation object of the builder. +func (uuo *UserUpdateOne) Mutation() *UserMutation { + return uuo.mutation +} + // RemoveFriendIDs removes the friends edge to User by ids. func (uuo *UserUpdateOne) RemoveFriendIDs(ids ...int) *UserUpdateOne { uuo.mutation.RemoveFriendIDs(ids...) diff --git a/examples/m2mrecur/ent/user_create.go b/examples/m2mrecur/ent/user_create.go index 4fcbda4aa..90b689e4c 100644 --- a/examples/m2mrecur/ent/user_create.go +++ b/examples/m2mrecur/ent/user_create.go @@ -65,6 +65,11 @@ func (uc *UserCreate) AddFollowing(u ...*User) *UserCreate { return uc.AddFollowingIDs(ids...) } +// Mutation returns the UserMutation object of the builder. +func (uc *UserCreate) Mutation() *UserMutation { + return uc.mutation +} + // Save creates the User in the database. func (uc *UserCreate) Save(ctx context.Context) (*User, error) { if _, ok := uc.mutation.Age(); !ok { diff --git a/examples/m2mrecur/ent/user_update.go b/examples/m2mrecur/ent/user_update.go index 875aba3e5..dd7c083d3 100644 --- a/examples/m2mrecur/ent/user_update.go +++ b/examples/m2mrecur/ent/user_update.go @@ -80,6 +80,11 @@ func (uu *UserUpdate) AddFollowing(u ...*User) *UserUpdate { return uu.AddFollowingIDs(ids...) } +// Mutation returns the UserMutation object of the builder. +func (uu *UserUpdate) Mutation() *UserMutation { + return uu.mutation +} + // RemoveFollowerIDs removes the followers edge to User by ids. func (uu *UserUpdate) RemoveFollowerIDs(ids ...int) *UserUpdate { uu.mutation.RemoveFollowerIDs(ids...) @@ -344,6 +349,11 @@ func (uuo *UserUpdateOne) AddFollowing(u ...*User) *UserUpdateOne { return uuo.AddFollowingIDs(ids...) } +// Mutation returns the UserMutation object of the builder. +func (uuo *UserUpdateOne) Mutation() *UserMutation { + return uuo.mutation +} + // RemoveFollowerIDs removes the followers edge to User by ids. func (uuo *UserUpdateOne) RemoveFollowerIDs(ids ...int) *UserUpdateOne { uuo.mutation.RemoveFollowerIDs(ids...) diff --git a/examples/o2m2types/ent/pet_create.go b/examples/o2m2types/ent/pet_create.go index ddb54837f..cc6b67fa6 100644 --- a/examples/o2m2types/ent/pet_create.go +++ b/examples/o2m2types/ent/pet_create.go @@ -49,6 +49,11 @@ func (pc *PetCreate) SetOwner(u *User) *PetCreate { return pc.SetOwnerID(u.ID) } +// Mutation returns the PetMutation object of the builder. +func (pc *PetCreate) Mutation() *PetMutation { + return pc.mutation +} + // Save creates the Pet in the database. func (pc *PetCreate) Save(ctx context.Context) (*Pet, error) { if _, ok := pc.mutation.Name(); !ok { diff --git a/examples/o2m2types/ent/pet_update.go b/examples/o2m2types/ent/pet_update.go index 5d9a00f0a..e2531933a 100644 --- a/examples/o2m2types/ent/pet_update.go +++ b/examples/o2m2types/ent/pet_update.go @@ -57,6 +57,11 @@ func (pu *PetUpdate) SetOwner(u *User) *PetUpdate { return pu.SetOwnerID(u.ID) } +// Mutation returns the PetMutation object of the builder. +func (pu *PetUpdate) Mutation() *PetMutation { + return pu.mutation +} + // ClearOwner clears the owner edge to User. func (pu *PetUpdate) ClearOwner() *PetUpdate { pu.mutation.ClearOwner() @@ -218,6 +223,11 @@ func (puo *PetUpdateOne) SetOwner(u *User) *PetUpdateOne { return puo.SetOwnerID(u.ID) } +// Mutation returns the PetMutation object of the builder. +func (puo *PetUpdateOne) Mutation() *PetMutation { + return puo.mutation +} + // ClearOwner clears the owner edge to User. func (puo *PetUpdateOne) ClearOwner() *PetUpdateOne { puo.mutation.ClearOwner() diff --git a/examples/o2m2types/ent/user_create.go b/examples/o2m2types/ent/user_create.go index 6a2a0d4e9..a86b5e899 100644 --- a/examples/o2m2types/ent/user_create.go +++ b/examples/o2m2types/ent/user_create.go @@ -51,6 +51,11 @@ func (uc *UserCreate) AddPets(p ...*Pet) *UserCreate { return uc.AddPetIDs(ids...) } +// Mutation returns the UserMutation object of the builder. +func (uc *UserCreate) Mutation() *UserMutation { + return uc.mutation +} + // Save creates the User in the database. func (uc *UserCreate) Save(ctx context.Context) (*User, error) { if _, ok := uc.mutation.Age(); !ok { diff --git a/examples/o2m2types/ent/user_update.go b/examples/o2m2types/ent/user_update.go index 21f928aaf..8a90923fa 100644 --- a/examples/o2m2types/ent/user_update.go +++ b/examples/o2m2types/ent/user_update.go @@ -66,6 +66,11 @@ func (uu *UserUpdate) AddPets(p ...*Pet) *UserUpdate { return uu.AddPetIDs(ids...) } +// Mutation returns the UserMutation object of the builder. +func (uu *UserUpdate) Mutation() *UserMutation { + return uu.mutation +} + // RemovePetIDs removes the pets edge to Pet by ids. func (uu *UserUpdate) RemovePetIDs(ids ...int) *UserUpdate { uu.mutation.RemovePetIDs(ids...) @@ -262,6 +267,11 @@ func (uuo *UserUpdateOne) AddPets(p ...*Pet) *UserUpdateOne { return uuo.AddPetIDs(ids...) } +// Mutation returns the UserMutation object of the builder. +func (uuo *UserUpdateOne) Mutation() *UserMutation { + return uuo.mutation +} + // RemovePetIDs removes the pets edge to Pet by ids. func (uuo *UserUpdateOne) RemovePetIDs(ids ...int) *UserUpdateOne { uuo.mutation.RemovePetIDs(ids...) diff --git a/examples/o2mrecur/ent/node_create.go b/examples/o2mrecur/ent/node_create.go index aa410fe18..33b97d8d0 100644 --- a/examples/o2mrecur/ent/node_create.go +++ b/examples/o2mrecur/ent/node_create.go @@ -63,6 +63,11 @@ func (nc *NodeCreate) AddChildren(n ...*Node) *NodeCreate { return nc.AddChildIDs(ids...) } +// 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) { if _, ok := nc.mutation.Value(); !ok { diff --git a/examples/o2mrecur/ent/node_update.go b/examples/o2mrecur/ent/node_update.go index c0762eef7..cce4b3b08 100644 --- a/examples/o2mrecur/ent/node_update.go +++ b/examples/o2mrecur/ent/node_update.go @@ -78,6 +78,11 @@ func (nu *NodeUpdate) AddChildren(n ...*Node) *NodeUpdate { return nu.AddChildIDs(ids...) } +// Mutation returns the NodeMutation object of the builder. +func (nu *NodeUpdate) Mutation() *NodeMutation { + return nu.mutation +} + // ClearParent clears the parent edge to Node. func (nu *NodeUpdate) ClearParent() *NodeUpdate { nu.mutation.ClearParent() @@ -321,6 +326,11 @@ func (nuo *NodeUpdateOne) AddChildren(n ...*Node) *NodeUpdateOne { return nuo.AddChildIDs(ids...) } +// Mutation returns the NodeMutation object of the builder. +func (nuo *NodeUpdateOne) Mutation() *NodeMutation { + return nuo.mutation +} + // ClearParent clears the parent edge to Node. func (nuo *NodeUpdateOne) ClearParent() *NodeUpdateOne { nuo.mutation.ClearParent() diff --git a/examples/o2o2types/ent/card_create.go b/examples/o2o2types/ent/card_create.go index 4abb29c6d..316ab841b 100644 --- a/examples/o2o2types/ent/card_create.go +++ b/examples/o2o2types/ent/card_create.go @@ -48,6 +48,11 @@ func (cc *CardCreate) SetOwner(u *User) *CardCreate { return cc.SetOwnerID(u.ID) } +// Mutation returns the CardMutation object of the builder. +func (cc *CardCreate) Mutation() *CardMutation { + return cc.mutation +} + // Save creates the Card in the database. func (cc *CardCreate) Save(ctx context.Context) (*Card, error) { if _, ok := cc.mutation.Expired(); !ok { diff --git a/examples/o2o2types/ent/card_update.go b/examples/o2o2types/ent/card_update.go index 988c3717f..1f2879f4a 100644 --- a/examples/o2o2types/ent/card_update.go +++ b/examples/o2o2types/ent/card_update.go @@ -57,6 +57,11 @@ func (cu *CardUpdate) SetOwner(u *User) *CardUpdate { return cu.SetOwnerID(u.ID) } +// Mutation returns the CardMutation object of the builder. +func (cu *CardUpdate) Mutation() *CardMutation { + return cu.mutation +} + // ClearOwner clears the owner edge to User. func (cu *CardUpdate) ClearOwner() *CardUpdate { cu.mutation.ClearOwner() @@ -226,6 +231,11 @@ func (cuo *CardUpdateOne) SetOwner(u *User) *CardUpdateOne { return cuo.SetOwnerID(u.ID) } +// Mutation returns the CardMutation object of the builder. +func (cuo *CardUpdateOne) Mutation() *CardMutation { + return cuo.mutation +} + // ClearOwner clears the owner edge to User. func (cuo *CardUpdateOne) ClearOwner() *CardUpdateOne { cuo.mutation.ClearOwner() diff --git a/examples/o2o2types/ent/user_create.go b/examples/o2o2types/ent/user_create.go index 5701610b3..8742c4daf 100644 --- a/examples/o2o2types/ent/user_create.go +++ b/examples/o2o2types/ent/user_create.go @@ -55,6 +55,11 @@ func (uc *UserCreate) SetCard(c *Card) *UserCreate { return uc.SetCardID(c.ID) } +// Mutation returns the UserMutation object of the builder. +func (uc *UserCreate) Mutation() *UserMutation { + return uc.mutation +} + // Save creates the User in the database. func (uc *UserCreate) Save(ctx context.Context) (*User, error) { if _, ok := uc.mutation.Age(); !ok { diff --git a/examples/o2o2types/ent/user_update.go b/examples/o2o2types/ent/user_update.go index 18d09026d..0a3fe2f0e 100644 --- a/examples/o2o2types/ent/user_update.go +++ b/examples/o2o2types/ent/user_update.go @@ -70,6 +70,11 @@ func (uu *UserUpdate) SetCard(c *Card) *UserUpdate { return uu.SetCardID(c.ID) } +// Mutation returns the UserMutation object of the builder. +func (uu *UserUpdate) Mutation() *UserMutation { + return uu.mutation +} + // ClearCard clears the card edge to Card. func (uu *UserUpdate) ClearCard() *UserUpdate { uu.mutation.ClearCard() @@ -258,6 +263,11 @@ func (uuo *UserUpdateOne) SetCard(c *Card) *UserUpdateOne { return uuo.SetCardID(c.ID) } +// Mutation returns the UserMutation object of the builder. +func (uuo *UserUpdateOne) Mutation() *UserMutation { + return uuo.mutation +} + // ClearCard clears the card edge to Card. func (uuo *UserUpdateOne) ClearCard() *UserUpdateOne { uuo.mutation.ClearCard() diff --git a/examples/o2obidi/ent/user_create.go b/examples/o2obidi/ent/user_create.go index e486204c2..b195a9fa8 100644 --- a/examples/o2obidi/ent/user_create.go +++ b/examples/o2obidi/ent/user_create.go @@ -54,6 +54,11 @@ func (uc *UserCreate) SetSpouse(u *User) *UserCreate { return uc.SetSpouseID(u.ID) } +// Mutation returns the UserMutation object of the builder. +func (uc *UserCreate) Mutation() *UserMutation { + return uc.mutation +} + // Save creates the User in the database. func (uc *UserCreate) Save(ctx context.Context) (*User, error) { if _, ok := uc.mutation.Age(); !ok { diff --git a/examples/o2obidi/ent/user_update.go b/examples/o2obidi/ent/user_update.go index b3fa0f4d2..443a18ddb 100644 --- a/examples/o2obidi/ent/user_update.go +++ b/examples/o2obidi/ent/user_update.go @@ -69,6 +69,11 @@ func (uu *UserUpdate) SetSpouse(u *User) *UserUpdate { return uu.SetSpouseID(u.ID) } +// Mutation returns the UserMutation object of the builder. +func (uu *UserUpdate) Mutation() *UserMutation { + return uu.mutation +} + // ClearSpouse clears the spouse edge to User. func (uu *UserUpdate) ClearSpouse() *UserUpdate { uu.mutation.ClearSpouse() @@ -257,6 +262,11 @@ func (uuo *UserUpdateOne) SetSpouse(u *User) *UserUpdateOne { return uuo.SetSpouseID(u.ID) } +// Mutation returns the UserMutation object of the builder. +func (uuo *UserUpdateOne) Mutation() *UserMutation { + return uuo.mutation +} + // ClearSpouse clears the spouse edge to User. func (uuo *UserUpdateOne) ClearSpouse() *UserUpdateOne { uuo.mutation.ClearSpouse() diff --git a/examples/o2orecur/ent/node_create.go b/examples/o2orecur/ent/node_create.go index 12347a0c9..6d2e48b98 100644 --- a/examples/o2orecur/ent/node_create.go +++ b/examples/o2orecur/ent/node_create.go @@ -67,6 +67,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) { if _, ok := nc.mutation.Value(); !ok { diff --git a/examples/o2orecur/ent/node_update.go b/examples/o2orecur/ent/node_update.go index 60ce37fc5..195477bfd 100644 --- a/examples/o2orecur/ent/node_update.go +++ b/examples/o2orecur/ent/node_update.go @@ -82,6 +82,11 @@ func (nu *NodeUpdate) SetNext(n *Node) *NodeUpdate { return nu.SetNextID(n.ID) } +// Mutation returns the NodeMutation object of the builder. +func (nu *NodeUpdate) Mutation() *NodeMutation { + return nu.mutation +} + // ClearPrev clears the prev edge to Node. func (nu *NodeUpdate) ClearPrev() *NodeUpdate { nu.mutation.ClearPrev() @@ -317,6 +322,11 @@ func (nuo *NodeUpdateOne) SetNext(n *Node) *NodeUpdateOne { return nuo.SetNextID(n.ID) } +// Mutation returns the NodeMutation object of the builder. +func (nuo *NodeUpdateOne) Mutation() *NodeMutation { + return nuo.mutation +} + // ClearPrev clears the prev edge to Node. func (nuo *NodeUpdateOne) ClearPrev() *NodeUpdateOne { nuo.mutation.ClearPrev() diff --git a/examples/start/ent/car_create.go b/examples/start/ent/car_create.go index 7b9f1dd58..4a2fd72a8 100644 --- a/examples/start/ent/car_create.go +++ b/examples/start/ent/car_create.go @@ -56,6 +56,11 @@ func (cc *CarCreate) SetOwner(u *User) *CarCreate { return cc.SetOwnerID(u.ID) } +// Mutation returns the CarMutation object of the builder. +func (cc *CarCreate) Mutation() *CarMutation { + return cc.mutation +} + // Save creates the Car in the database. func (cc *CarCreate) Save(ctx context.Context) (*Car, error) { if _, ok := cc.mutation.Model(); !ok { diff --git a/examples/start/ent/car_update.go b/examples/start/ent/car_update.go index 86c509a20..ac8deb241 100644 --- a/examples/start/ent/car_update.go +++ b/examples/start/ent/car_update.go @@ -64,6 +64,11 @@ func (cu *CarUpdate) SetOwner(u *User) *CarUpdate { return cu.SetOwnerID(u.ID) } +// Mutation returns the CarMutation object of the builder. +func (cu *CarUpdate) Mutation() *CarMutation { + return cu.mutation +} + // ClearOwner clears the owner edge to User. func (cu *CarUpdate) ClearOwner() *CarUpdate { cu.mutation.ClearOwner() @@ -238,6 +243,11 @@ func (cuo *CarUpdateOne) SetOwner(u *User) *CarUpdateOne { return cuo.SetOwnerID(u.ID) } +// Mutation returns the CarMutation object of the builder. +func (cuo *CarUpdateOne) Mutation() *CarMutation { + return cuo.mutation +} + // ClearOwner clears the owner edge to User. func (cuo *CarUpdateOne) ClearOwner() *CarUpdateOne { cuo.mutation.ClearOwner() diff --git a/examples/start/ent/group_create.go b/examples/start/ent/group_create.go index 845e86f6e..68fa04df8 100644 --- a/examples/start/ent/group_create.go +++ b/examples/start/ent/group_create.go @@ -45,6 +45,11 @@ func (gc *GroupCreate) AddUsers(u ...*User) *GroupCreate { return gc.AddUserIDs(ids...) } +// Mutation returns the GroupMutation object of the builder. +func (gc *GroupCreate) Mutation() *GroupMutation { + return gc.mutation +} + // Save creates the Group in the database. func (gc *GroupCreate) Save(ctx context.Context) (*Group, error) { if _, ok := gc.mutation.Name(); !ok { diff --git a/examples/start/ent/group_update.go b/examples/start/ent/group_update.go index dd4213004..3fff067bc 100644 --- a/examples/start/ent/group_update.go +++ b/examples/start/ent/group_update.go @@ -53,6 +53,11 @@ func (gu *GroupUpdate) AddUsers(u ...*User) *GroupUpdate { return gu.AddUserIDs(ids...) } +// Mutation returns the GroupMutation object of the builder. +func (gu *GroupUpdate) Mutation() *GroupMutation { + return gu.mutation +} + // RemoveUserIDs removes the users edge to User by ids. func (gu *GroupUpdate) RemoveUserIDs(ids ...int) *GroupUpdate { gu.mutation.RemoveUserIDs(ids...) @@ -227,6 +232,11 @@ func (guo *GroupUpdateOne) AddUsers(u ...*User) *GroupUpdateOne { return guo.AddUserIDs(ids...) } +// Mutation returns the GroupMutation object of the builder. +func (guo *GroupUpdateOne) Mutation() *GroupMutation { + return guo.mutation +} + // RemoveUserIDs removes the users edge to User by ids. func (guo *GroupUpdateOne) RemoveUserIDs(ids ...int) *GroupUpdateOne { guo.mutation.RemoveUserIDs(ids...) diff --git a/examples/start/ent/user_create.go b/examples/start/ent/user_create.go index 2f920386c..fc0c398d4 100644 --- a/examples/start/ent/user_create.go +++ b/examples/start/ent/user_create.go @@ -75,6 +75,11 @@ func (uc *UserCreate) AddGroups(g ...*Group) *UserCreate { return uc.AddGroupIDs(ids...) } +// Mutation returns the UserMutation object of the builder. +func (uc *UserCreate) Mutation() *UserMutation { + return uc.mutation +} + // Save creates the User in the database. func (uc *UserCreate) Save(ctx context.Context) (*User, error) { if _, ok := uc.mutation.Age(); !ok { diff --git a/examples/start/ent/user_update.go b/examples/start/ent/user_update.go index c3ee47404..0d6888151 100644 --- a/examples/start/ent/user_update.go +++ b/examples/start/ent/user_update.go @@ -90,6 +90,11 @@ func (uu *UserUpdate) AddGroups(g ...*Group) *UserUpdate { return uu.AddGroupIDs(ids...) } +// Mutation returns the UserMutation object of the builder. +func (uu *UserUpdate) Mutation() *UserMutation { + return uu.mutation +} + // RemoveCarIDs removes the cars edge to Car by ids. func (uu *UserUpdate) RemoveCarIDs(ids ...int) *UserUpdate { uu.mutation.RemoveCarIDs(ids...) @@ -367,6 +372,11 @@ func (uuo *UserUpdateOne) AddGroups(g ...*Group) *UserUpdateOne { return uuo.AddGroupIDs(ids...) } +// Mutation returns the UserMutation object of the builder. +func (uuo *UserUpdateOne) Mutation() *UserMutation { + return uuo.mutation +} + // RemoveCarIDs removes the cars edge to Car by ids. func (uuo *UserUpdateOne) RemoveCarIDs(ids ...int) *UserUpdateOne { uuo.mutation.RemoveCarIDs(ids...) diff --git a/examples/traversal/ent/group_create.go b/examples/traversal/ent/group_create.go index 5741dbf2c..327bc1641 100644 --- a/examples/traversal/ent/group_create.go +++ b/examples/traversal/ent/group_create.go @@ -64,6 +64,11 @@ func (gc *GroupCreate) SetAdmin(u *User) *GroupCreate { return gc.SetAdminID(u.ID) } +// Mutation returns the GroupMutation object of the builder. +func (gc *GroupCreate) Mutation() *GroupMutation { + return gc.mutation +} + // Save creates the Group in the database. func (gc *GroupCreate) Save(ctx context.Context) (*Group, error) { if _, ok := gc.mutation.Name(); !ok { diff --git a/examples/traversal/ent/group_update.go b/examples/traversal/ent/group_update.go index 495124daa..f4b7bccea 100644 --- a/examples/traversal/ent/group_update.go +++ b/examples/traversal/ent/group_update.go @@ -72,6 +72,11 @@ func (gu *GroupUpdate) SetAdmin(u *User) *GroupUpdate { return gu.SetAdminID(u.ID) } +// Mutation returns the GroupMutation object of the builder. +func (gu *GroupUpdate) Mutation() *GroupMutation { + return gu.mutation +} + // RemoveUserIDs removes the users edge to User by ids. func (gu *GroupUpdate) RemoveUserIDs(ids ...int) *GroupUpdate { gu.mutation.RemoveUserIDs(ids...) @@ -301,6 +306,11 @@ func (guo *GroupUpdateOne) SetAdmin(u *User) *GroupUpdateOne { return guo.SetAdminID(u.ID) } +// Mutation returns the GroupMutation object of the builder. +func (guo *GroupUpdateOne) Mutation() *GroupMutation { + return guo.mutation +} + // RemoveUserIDs removes the users edge to User by ids. func (guo *GroupUpdateOne) RemoveUserIDs(ids ...int) *GroupUpdateOne { guo.mutation.RemoveUserIDs(ids...) diff --git a/examples/traversal/ent/pet_create.go b/examples/traversal/ent/pet_create.go index d6e94c047..598620a0e 100644 --- a/examples/traversal/ent/pet_create.go +++ b/examples/traversal/ent/pet_create.go @@ -64,6 +64,11 @@ func (pc *PetCreate) SetOwner(u *User) *PetCreate { return pc.SetOwnerID(u.ID) } +// Mutation returns the PetMutation object of the builder. +func (pc *PetCreate) Mutation() *PetMutation { + return pc.mutation +} + // Save creates the Pet in the database. func (pc *PetCreate) Save(ctx context.Context) (*Pet, error) { if _, ok := pc.mutation.Name(); !ok { diff --git a/examples/traversal/ent/pet_update.go b/examples/traversal/ent/pet_update.go index f105ec657..7a28021e8 100644 --- a/examples/traversal/ent/pet_update.go +++ b/examples/traversal/ent/pet_update.go @@ -72,6 +72,11 @@ func (pu *PetUpdate) SetOwner(u *User) *PetUpdate { return pu.SetOwnerID(u.ID) } +// Mutation returns the PetMutation object of the builder. +func (pu *PetUpdate) Mutation() *PetMutation { + return pu.mutation +} + // RemoveFriendIDs removes the friends edge to Pet by ids. func (pu *PetUpdate) RemoveFriendIDs(ids ...int) *PetUpdate { pu.mutation.RemoveFriendIDs(ids...) @@ -301,6 +306,11 @@ func (puo *PetUpdateOne) SetOwner(u *User) *PetUpdateOne { return puo.SetOwnerID(u.ID) } +// Mutation returns the PetMutation object of the builder. +func (puo *PetUpdateOne) Mutation() *PetMutation { + return puo.mutation +} + // RemoveFriendIDs removes the friends edge to Pet by ids. func (puo *PetUpdateOne) RemoveFriendIDs(ids ...int) *PetUpdateOne { puo.mutation.RemoveFriendIDs(ids...) diff --git a/examples/traversal/ent/user_create.go b/examples/traversal/ent/user_create.go index 1f58cf8dd..b82ac3c5b 100644 --- a/examples/traversal/ent/user_create.go +++ b/examples/traversal/ent/user_create.go @@ -97,6 +97,11 @@ func (uc *UserCreate) AddManage(g ...*Group) *UserCreate { return uc.AddManageIDs(ids...) } +// Mutation returns the UserMutation object of the builder. +func (uc *UserCreate) Mutation() *UserMutation { + return uc.mutation +} + // Save creates the User in the database. func (uc *UserCreate) Save(ctx context.Context) (*User, error) { if _, ok := uc.mutation.Age(); !ok { diff --git a/examples/traversal/ent/user_update.go b/examples/traversal/ent/user_update.go index d1503e9fa..29db6b728 100644 --- a/examples/traversal/ent/user_update.go +++ b/examples/traversal/ent/user_update.go @@ -112,6 +112,11 @@ func (uu *UserUpdate) AddManage(g ...*Group) *UserUpdate { return uu.AddManageIDs(ids...) } +// Mutation returns the UserMutation object of the builder. +func (uu *UserUpdate) Mutation() *UserMutation { + return uu.mutation +} + // RemovePetIDs removes the pets edge to Pet by ids. func (uu *UserUpdate) RemovePetIDs(ids ...int) *UserUpdate { uu.mutation.RemovePetIDs(ids...) @@ -512,6 +517,11 @@ func (uuo *UserUpdateOne) AddManage(g ...*Group) *UserUpdateOne { return uuo.AddManageIDs(ids...) } +// Mutation returns the UserMutation object of the builder. +func (uuo *UserUpdateOne) Mutation() *UserMutation { + return uuo.mutation +} + // RemovePetIDs removes the pets edge to Pet by ids. func (uuo *UserUpdateOne) RemovePetIDs(ids ...int) *UserUpdateOne { uuo.mutation.RemovePetIDs(ids...)