user

package
v0.0.35-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserCallbackWithBuilder

type UserCallbackWithBuilder interface {
	SetBuilder(*UserMutationBuilder)
}

type UserMutationBuilder

type UserMutationBuilder struct {
	// contains filtered or unexported fields
}

func NewMutationBuilder

func NewMutationBuilder(
	v viewer.ViewerContext,
	operation ent.WriteOperation,
	requiredFields []string,
	opts ...func(*actions.EntMutationBuilder),
) *UserMutationBuilder

func (*UserMutationBuilder) AddDeclinedEventID

func (b *UserMutationBuilder) AddDeclinedEventID(eventID string, options ...func(*ent.EdgeOperation)) *UserMutationBuilder

AddDeclinedEventID adds an instance of Event to the DeclinedEvents edge while editing the Event ent

func (*UserMutationBuilder) AddDeclinedEventIDs

func (b *UserMutationBuilder) AddDeclinedEventIDs(eventIDs ...string) *UserMutationBuilder

AddDeclinedEventIDs adds an instance of Event to the DeclinedEvents edge while editing the Event ent

func (*UserMutationBuilder) AddDeclinedEvents

func (b *UserMutationBuilder) AddDeclinedEvents(events ...*models.Event) *UserMutationBuilder

AddDeclinedEvents adds one or more instances of Event to the DeclinedEvents edge while editing the Event ent

func (*UserMutationBuilder) AddEventID

func (b *UserMutationBuilder) AddEventID(eventID string, options ...func(*ent.EdgeOperation)) *UserMutationBuilder

AddEventID adds an instance of Event to the Events edge while editing the Event ent

func (*UserMutationBuilder) AddEventIDs

func (b *UserMutationBuilder) AddEventIDs(eventIDs ...string) *UserMutationBuilder

AddEventIDs adds an instance of Event to the Events edge while editing the Event ent

func (*UserMutationBuilder) AddEvents

func (b *UserMutationBuilder) AddEvents(events ...*models.Event) *UserMutationBuilder

AddEvents adds one or more instances of Event to the Events edge while editing the Event ent

func (*UserMutationBuilder) AddEventsAttending

func (b *UserMutationBuilder) AddEventsAttending(events ...*models.Event) *UserMutationBuilder

AddEventsAttending adds one or more instances of Event to the EventsAttending edge while editing the Event ent

func (*UserMutationBuilder) AddEventsAttendingID

func (b *UserMutationBuilder) AddEventsAttendingID(eventID string, options ...func(*ent.EdgeOperation)) *UserMutationBuilder

AddEventsAttendingID adds an instance of Event to the EventsAttending edge while editing the Event ent

func (*UserMutationBuilder) AddEventsAttendingIDs

func (b *UserMutationBuilder) AddEventsAttendingIDs(eventIDs ...string) *UserMutationBuilder

AddEventsAttendingIDs adds an instance of Event to the EventsAttending edge while editing the Event ent

func (*UserMutationBuilder) AddFamilyMemberID

func (b *UserMutationBuilder) AddFamilyMemberID(userID string, options ...func(*ent.EdgeOperation)) *UserMutationBuilder

AddFamilyMemberID adds an instance of User to the FamilyMembers edge while editing the User ent

func (*UserMutationBuilder) AddFamilyMemberIDs

func (b *UserMutationBuilder) AddFamilyMemberIDs(userIDs ...string) *UserMutationBuilder

AddFamilyMemberIDs adds an instance of User to the FamilyMembers edge while editing the User ent

func (*UserMutationBuilder) AddFamilyMembers

func (b *UserMutationBuilder) AddFamilyMembers(users ...*models.User) *UserMutationBuilder

AddFamilyMembers adds one or more instances of User to the FamilyMembers edge while editing the User ent

func (*UserMutationBuilder) AddFriendID

func (b *UserMutationBuilder) AddFriendID(userID string, options ...func(*ent.EdgeOperation)) *UserMutationBuilder

AddFriendID adds an instance of User to the Friends edge while editing the User ent

func (*UserMutationBuilder) AddFriendIDs

func (b *UserMutationBuilder) AddFriendIDs(userIDs ...string) *UserMutationBuilder

AddFriendIDs adds an instance of User to the Friends edge while editing the User ent

func (*UserMutationBuilder) AddFriends

func (b *UserMutationBuilder) AddFriends(users ...*models.User) *UserMutationBuilder

AddFriends adds one or more instances of User to the Friends edge while editing the User ent

func (*UserMutationBuilder) AddInvitedEventID

func (b *UserMutationBuilder) AddInvitedEventID(eventID string, options ...func(*ent.EdgeOperation)) *UserMutationBuilder

AddInvitedEventID adds an instance of Event to the InvitedEvents edge while editing the Event ent

func (*UserMutationBuilder) AddInvitedEventIDs

func (b *UserMutationBuilder) AddInvitedEventIDs(eventIDs ...string) *UserMutationBuilder

AddInvitedEventIDs adds an instance of Event to the InvitedEvents edge while editing the Event ent

func (*UserMutationBuilder) AddInvitedEvents

func (b *UserMutationBuilder) AddInvitedEvents(events ...*models.Event) *UserMutationBuilder

AddInvitedEvents adds one or more instances of Event to the InvitedEvents edge while editing the Event ent

func (*UserMutationBuilder) Entity

func (b *UserMutationBuilder) Entity() ent.Entity

func (*UserMutationBuilder) ExistingEnt

func (b *UserMutationBuilder) ExistingEnt() ent.Entity

func (*UserMutationBuilder) GetBio

func (b *UserMutationBuilder) GetBio() *string

func (*UserMutationBuilder) GetChangeset

func (b *UserMutationBuilder) GetChangeset() (ent.Changeset, error)

TODO rename from GetChangeset to Build() A Builder builds.

func (*UserMutationBuilder) GetEmailAddress

func (b *UserMutationBuilder) GetEmailAddress() string

func (*UserMutationBuilder) GetFields

func (b *UserMutationBuilder) GetFields() ent.FieldMap

GetFields returns the field configuration for this mutation builder

func (*UserMutationBuilder) GetFirstName

func (b *UserMutationBuilder) GetFirstName() string

func (*UserMutationBuilder) GetLastName

func (b *UserMutationBuilder) GetLastName() string

func (*UserMutationBuilder) GetOperation

func (b *UserMutationBuilder) GetOperation() ent.WriteOperation

func (*UserMutationBuilder) GetPassword

func (b *UserMutationBuilder) GetPassword() string

func (*UserMutationBuilder) GetPhoneNumber

func (b *UserMutationBuilder) GetPhoneNumber() *string

func (*UserMutationBuilder) GetPlaceholderID

func (b *UserMutationBuilder) GetPlaceholderID() string

func (*UserMutationBuilder) GetUser

func (b *UserMutationBuilder) GetUser() *models.User

func (*UserMutationBuilder) GetViewer

func (b *UserMutationBuilder) GetViewer() viewer.ViewerContext

func (*UserMutationBuilder) RemoveDeclinedEventID

func (b *UserMutationBuilder) RemoveDeclinedEventID(eventID string) *UserMutationBuilder

RemoveDeclinedEventID removes an instance of Event from the DeclinedEvents edge while editing the Event ent

func (*UserMutationBuilder) RemoveDeclinedEventIDs

func (b *UserMutationBuilder) RemoveDeclinedEventIDs(eventIDs ...string) *UserMutationBuilder

RemoveDeclinedEventIDs removes an instance of Event from the DeclinedEvents edge while editing the Event ent

func (*UserMutationBuilder) RemoveDeclinedEvents

func (b *UserMutationBuilder) RemoveDeclinedEvents(events ...*models.Event) *UserMutationBuilder

RemoveDeclinedEvents removes an instance of Event from the DeclinedEvents edge while editing the Event ent

func (*UserMutationBuilder) RemoveEventID

func (b *UserMutationBuilder) RemoveEventID(eventID string) *UserMutationBuilder

RemoveEventID removes an instance of Event from the Events edge while editing the Event ent

func (*UserMutationBuilder) RemoveEventIDs

func (b *UserMutationBuilder) RemoveEventIDs(eventIDs ...string) *UserMutationBuilder

RemoveEventIDs removes an instance of Event from the Events edge while editing the Event ent

func (*UserMutationBuilder) RemoveEvents

func (b *UserMutationBuilder) RemoveEvents(events ...*models.Event) *UserMutationBuilder

RemoveEvents removes an instance of Event from the Events edge while editing the Event ent

func (*UserMutationBuilder) RemoveEventsAttending

func (b *UserMutationBuilder) RemoveEventsAttending(events ...*models.Event) *UserMutationBuilder

RemoveEventsAttending removes an instance of Event from the EventsAttending edge while editing the Event ent

func (*UserMutationBuilder) RemoveEventsAttendingID

func (b *UserMutationBuilder) RemoveEventsAttendingID(eventID string) *UserMutationBuilder

RemoveEventsAttendingID removes an instance of Event from the EventsAttending edge while editing the Event ent

func (*UserMutationBuilder) RemoveEventsAttendingIDs

func (b *UserMutationBuilder) RemoveEventsAttendingIDs(eventIDs ...string) *UserMutationBuilder

RemoveEventsAttendingIDs removes an instance of Event from the EventsAttending edge while editing the Event ent

func (*UserMutationBuilder) RemoveFamilyMemberID

func (b *UserMutationBuilder) RemoveFamilyMemberID(userID string) *UserMutationBuilder

RemoveFamilyMemberID removes an instance of User from the FamilyMembers edge while editing the User ent

func (*UserMutationBuilder) RemoveFamilyMemberIDs

func (b *UserMutationBuilder) RemoveFamilyMemberIDs(userIDs ...string) *UserMutationBuilder

RemoveFamilyMemberIDs removes an instance of User from the FamilyMembers edge while editing the User ent

func (*UserMutationBuilder) RemoveFamilyMembers

func (b *UserMutationBuilder) RemoveFamilyMembers(users ...*models.User) *UserMutationBuilder

RemoveFamilyMembers removes an instance of User from the FamilyMembers edge while editing the User ent

func (*UserMutationBuilder) RemoveFriendID

func (b *UserMutationBuilder) RemoveFriendID(userID string) *UserMutationBuilder

RemoveFriendID removes an instance of User from the Friends edge while editing the User ent

func (*UserMutationBuilder) RemoveFriendIDs

func (b *UserMutationBuilder) RemoveFriendIDs(userIDs ...string) *UserMutationBuilder

RemoveFriendIDs removes an instance of User from the Friends edge while editing the User ent

func (*UserMutationBuilder) RemoveFriends

func (b *UserMutationBuilder) RemoveFriends(users ...*models.User) *UserMutationBuilder

RemoveFriends removes an instance of User from the Friends edge while editing the User ent

func (*UserMutationBuilder) RemoveInvitedEventID

func (b *UserMutationBuilder) RemoveInvitedEventID(eventID string) *UserMutationBuilder

RemoveInvitedEventID removes an instance of Event from the InvitedEvents edge while editing the Event ent

func (*UserMutationBuilder) RemoveInvitedEventIDs

func (b *UserMutationBuilder) RemoveInvitedEventIDs(eventIDs ...string) *UserMutationBuilder

RemoveInvitedEventIDs removes an instance of Event from the InvitedEvents edge while editing the Event ent

func (*UserMutationBuilder) RemoveInvitedEvents

func (b *UserMutationBuilder) RemoveInvitedEvents(events ...*models.Event) *UserMutationBuilder

RemoveInvitedEvents removes an instance of Event from the InvitedEvents edge while editing the Event ent

func (*UserMutationBuilder) SetBio

func (*UserMutationBuilder) SetEmailAddress

func (b *UserMutationBuilder) SetEmailAddress(emailAddress string) *UserMutationBuilder

func (*UserMutationBuilder) SetFirstName

func (b *UserMutationBuilder) SetFirstName(firstName string) *UserMutationBuilder

func (*UserMutationBuilder) SetLastName

func (b *UserMutationBuilder) SetLastName(lastName string) *UserMutationBuilder

func (*UserMutationBuilder) SetNilableBio

func (b *UserMutationBuilder) SetNilableBio(bio *string) *UserMutationBuilder

func (*UserMutationBuilder) SetNilablePhoneNumber

func (b *UserMutationBuilder) SetNilablePhoneNumber(phoneNumber *string) *UserMutationBuilder

func (*UserMutationBuilder) SetObservers

func (b *UserMutationBuilder) SetObservers(observers []actions.Observer)

SetObservers sets the builder on the observers.

func (*UserMutationBuilder) SetPassword

func (b *UserMutationBuilder) SetPassword(password string) *UserMutationBuilder

func (*UserMutationBuilder) SetPhoneNumber

func (b *UserMutationBuilder) SetPhoneNumber(phoneNumber string) *UserMutationBuilder

func (*UserMutationBuilder) SetTriggers

func (b *UserMutationBuilder) SetTriggers(triggers []actions.Trigger)

SetTriggers sets the builder on the triggers.

func (*UserMutationBuilder) SetValidators

func (b *UserMutationBuilder) SetValidators(validators []actions.Validator)

SetValidators sets the builder on validators.

func (*UserMutationBuilder) Validate

func (b *UserMutationBuilder) Validate() error

Call Validate (should be Valid) at any point to validate that builder is valid

type UserMutationCallback

type UserMutationCallback struct {
	Builder *UserMutationBuilder
}

func (*UserMutationCallback) SetBuilder

func (callback *UserMutationCallback) SetBuilder(b *UserMutationBuilder)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL