Documentation ¶
Index ¶
- type ContactCallbackWithBuilder
- type ContactMutationBuilder
- func (b *ContactMutationBuilder) AddAllowList(users ...*models.User) *ContactMutationBuilder
- func (b *ContactMutationBuilder) AddAllowListID(userID string, options ...func(*ent.EdgeOperation)) *ContactMutationBuilder
- func (b *ContactMutationBuilder) AddAllowListIDs(userIDs ...string) *ContactMutationBuilder
- func (b *ContactMutationBuilder) Entity() ent.Entity
- func (b *ContactMutationBuilder) ExistingEnt() ent.Entity
- func (b *ContactMutationBuilder) GetChangeset() (ent.Changeset, error)
- func (b *ContactMutationBuilder) GetContact() *models.Contact
- func (b *ContactMutationBuilder) GetEmailAddress() string
- func (b *ContactMutationBuilder) GetFavorite() *bool
- func (b *ContactMutationBuilder) GetFields() ent.FieldMap
- func (b *ContactMutationBuilder) GetFirstName() string
- func (b *ContactMutationBuilder) GetLastName() string
- func (b *ContactMutationBuilder) GetNumberOfCalls() *int
- func (b *ContactMutationBuilder) GetOperation() ent.WriteOperation
- func (b *ContactMutationBuilder) GetPi() *float64
- func (b *ContactMutationBuilder) GetPlaceholderID() string
- func (b *ContactMutationBuilder) GetUserID() string
- func (b *ContactMutationBuilder) GetUserIDBuilder() ent.MutationBuilder
- func (b *ContactMutationBuilder) GetViewer() viewer.ViewerContext
- func (b *ContactMutationBuilder) RemoveAllowList(users ...*models.User) *ContactMutationBuilder
- func (b *ContactMutationBuilder) RemoveAllowListID(userID string) *ContactMutationBuilder
- func (b *ContactMutationBuilder) RemoveAllowListIDs(userIDs ...string) *ContactMutationBuilder
- func (b *ContactMutationBuilder) SetEmailAddress(emailAddress string) *ContactMutationBuilder
- func (b *ContactMutationBuilder) SetFavorite(favorite bool) *ContactMutationBuilder
- func (b *ContactMutationBuilder) SetFirstName(firstName string) *ContactMutationBuilder
- func (b *ContactMutationBuilder) SetLastName(lastName string) *ContactMutationBuilder
- func (b *ContactMutationBuilder) SetNilableFavorite(favorite *bool) *ContactMutationBuilder
- func (b *ContactMutationBuilder) SetNilableNumberOfCalls(numberOfCalls *int) *ContactMutationBuilder
- func (b *ContactMutationBuilder) SetNilablePi(pi *float64) *ContactMutationBuilder
- func (b *ContactMutationBuilder) SetNumberOfCalls(numberOfCalls int) *ContactMutationBuilder
- func (b *ContactMutationBuilder) SetObservers(observers []actions.Observer)
- func (b *ContactMutationBuilder) SetPi(pi float64) *ContactMutationBuilder
- func (b *ContactMutationBuilder) SetTriggers(triggers []actions.Trigger)
- func (b *ContactMutationBuilder) SetUserID(userID string) *ContactMutationBuilder
- func (b *ContactMutationBuilder) SetUserIDBuilder(builder ent.MutationBuilder) *ContactMutationBuilder
- func (b *ContactMutationBuilder) SetValidators(validators []actions.Validator)
- func (b *ContactMutationBuilder) Validate() error
- type ContactMutationCallback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContactCallbackWithBuilder ¶
type ContactCallbackWithBuilder interface {
SetBuilder(*ContactMutationBuilder)
}
type ContactMutationBuilder ¶
type ContactMutationBuilder struct {
// contains filtered or unexported fields
}
func NewMutationBuilder ¶
func NewMutationBuilder( v viewer.ViewerContext, operation ent.WriteOperation, requiredFields []string, opts ...func(*actions.EntMutationBuilder), ) *ContactMutationBuilder
func (*ContactMutationBuilder) AddAllowList ¶
func (b *ContactMutationBuilder) AddAllowList(users ...*models.User) *ContactMutationBuilder
AddAllowList adds one or more instances of User to the AllowList edge while editing the User ent
func (*ContactMutationBuilder) AddAllowListID ¶
func (b *ContactMutationBuilder) AddAllowListID(userID string, options ...func(*ent.EdgeOperation)) *ContactMutationBuilder
AddAllowListID adds an instance of User to the AllowList edge while editing the User ent
func (*ContactMutationBuilder) AddAllowListIDs ¶
func (b *ContactMutationBuilder) AddAllowListIDs(userIDs ...string) *ContactMutationBuilder
AddAllowListIDs adds an instance of User to the AllowList edge while editing the User ent
func (*ContactMutationBuilder) Entity ¶
func (b *ContactMutationBuilder) Entity() ent.Entity
func (*ContactMutationBuilder) ExistingEnt ¶
func (b *ContactMutationBuilder) ExistingEnt() ent.Entity
func (*ContactMutationBuilder) GetChangeset ¶
func (b *ContactMutationBuilder) GetChangeset() (ent.Changeset, error)
TODO rename from GetChangeset to Build() A Builder builds.
func (*ContactMutationBuilder) GetContact ¶
func (b *ContactMutationBuilder) GetContact() *models.Contact
func (*ContactMutationBuilder) GetEmailAddress ¶
func (b *ContactMutationBuilder) GetEmailAddress() string
func (*ContactMutationBuilder) GetFavorite ¶
func (b *ContactMutationBuilder) GetFavorite() *bool
func (*ContactMutationBuilder) GetFields ¶
func (b *ContactMutationBuilder) GetFields() ent.FieldMap
GetFields returns the field configuration for this mutation builder
func (*ContactMutationBuilder) GetFirstName ¶
func (b *ContactMutationBuilder) GetFirstName() string
func (*ContactMutationBuilder) GetLastName ¶
func (b *ContactMutationBuilder) GetLastName() string
func (*ContactMutationBuilder) GetNumberOfCalls ¶
func (b *ContactMutationBuilder) GetNumberOfCalls() *int
func (*ContactMutationBuilder) GetOperation ¶
func (b *ContactMutationBuilder) GetOperation() ent.WriteOperation
func (*ContactMutationBuilder) GetPi ¶
func (b *ContactMutationBuilder) GetPi() *float64
func (*ContactMutationBuilder) GetPlaceholderID ¶
func (b *ContactMutationBuilder) GetPlaceholderID() string
func (*ContactMutationBuilder) GetUserID ¶
func (b *ContactMutationBuilder) GetUserID() string
func (*ContactMutationBuilder) GetUserIDBuilder ¶
func (b *ContactMutationBuilder) GetUserIDBuilder() ent.MutationBuilder
func (*ContactMutationBuilder) GetViewer ¶
func (b *ContactMutationBuilder) GetViewer() viewer.ViewerContext
func (*ContactMutationBuilder) RemoveAllowList ¶
func (b *ContactMutationBuilder) RemoveAllowList(users ...*models.User) *ContactMutationBuilder
RemoveAllowList removes an instance of User from the AllowList edge while editing the User ent
func (*ContactMutationBuilder) RemoveAllowListID ¶
func (b *ContactMutationBuilder) RemoveAllowListID(userID string) *ContactMutationBuilder
RemoveAllowListID removes an instance of User from the AllowList edge while editing the User ent
func (*ContactMutationBuilder) RemoveAllowListIDs ¶
func (b *ContactMutationBuilder) RemoveAllowListIDs(userIDs ...string) *ContactMutationBuilder
RemoveAllowListIDs removes an instance of User from the AllowList edge while editing the User ent
func (*ContactMutationBuilder) SetEmailAddress ¶
func (b *ContactMutationBuilder) SetEmailAddress(emailAddress string) *ContactMutationBuilder
func (*ContactMutationBuilder) SetFavorite ¶
func (b *ContactMutationBuilder) SetFavorite(favorite bool) *ContactMutationBuilder
func (*ContactMutationBuilder) SetFirstName ¶
func (b *ContactMutationBuilder) SetFirstName(firstName string) *ContactMutationBuilder
func (*ContactMutationBuilder) SetLastName ¶
func (b *ContactMutationBuilder) SetLastName(lastName string) *ContactMutationBuilder
func (*ContactMutationBuilder) SetNilableFavorite ¶
func (b *ContactMutationBuilder) SetNilableFavorite(favorite *bool) *ContactMutationBuilder
func (*ContactMutationBuilder) SetNilableNumberOfCalls ¶
func (b *ContactMutationBuilder) SetNilableNumberOfCalls(numberOfCalls *int) *ContactMutationBuilder
func (*ContactMutationBuilder) SetNilablePi ¶
func (b *ContactMutationBuilder) SetNilablePi(pi *float64) *ContactMutationBuilder
func (*ContactMutationBuilder) SetNumberOfCalls ¶
func (b *ContactMutationBuilder) SetNumberOfCalls(numberOfCalls int) *ContactMutationBuilder
func (*ContactMutationBuilder) SetObservers ¶
func (b *ContactMutationBuilder) SetObservers(observers []actions.Observer)
SetObservers sets the builder on the observers.
func (*ContactMutationBuilder) SetPi ¶
func (b *ContactMutationBuilder) SetPi(pi float64) *ContactMutationBuilder
func (*ContactMutationBuilder) SetTriggers ¶
func (b *ContactMutationBuilder) SetTriggers(triggers []actions.Trigger)
SetTriggers sets the builder on the triggers.
func (*ContactMutationBuilder) SetUserID ¶
func (b *ContactMutationBuilder) SetUserID(userID string) *ContactMutationBuilder
func (*ContactMutationBuilder) SetUserIDBuilder ¶
func (b *ContactMutationBuilder) SetUserIDBuilder(builder ent.MutationBuilder) *ContactMutationBuilder
func (*ContactMutationBuilder) SetValidators ¶
func (b *ContactMutationBuilder) SetValidators(validators []actions.Validator)
SetValidators sets the builder on validators.
func (*ContactMutationBuilder) Validate ¶
func (b *ContactMutationBuilder) Validate() error
Call Validate (should be Valid) at any point to validate that builder is valid
type ContactMutationCallback ¶
type ContactMutationCallback struct {
Builder *ContactMutationBuilder
}
func (*ContactMutationCallback) SetBuilder ¶
func (callback *ContactMutationCallback) SetBuilder(b *ContactMutationBuilder)