// Fields returns all fields that were changed during this mutation. Note that in
// order to get all numeric fields that were incremented/decremented, call
// AddedFields().
Fields returns all fields that were changed during this mutation. Note that in
order to get all numeric fields that were incremented/decremented, call
AddedFields().
// Fields returns all fields that were changed during this mutation . Note that in // order to get all numeric fields that were incremented / decremented call // AddedFields () .
func (m *GrantMutation) Fields() []string {
	fields := make([]string, 0, 8)
	if m.created_at != nil {
		fields = append(fields, grant.FieldCreatedAt)
	}
	if m.updated_at != nil {
		fields = append(fields, grant.FieldUpdatedAt)
	}
	if m.deleted_at != nil {
		fields = append(fields, grant.FieldDeletedAt)
	}
	if m.hashed_grant_token != nil {
		fields = append(fields, grant.FieldHashedGrantToken)
	}
	if m.domain != nil {
		fields = append(fields, grant.FieldDomain)
	}
	if m.version != nil {
		fields = append(fields, grant.FieldVersion)
	}
	if m.allowed_http_methods != nil {
		fields = append(fields, grant.FieldAllowedHTTPMethods)
	}
	if m.paths != nil {
		fields = append(fields, grant.FieldPaths)
	}
	return fields
}
func ( m * GrantMutation ) Fields ( ) [ ] string { fields := make ( [ ] string , 0 , 8 ) if m . created_at != nil { fields = append ( fields , grant . FieldCreatedAt ) } if m . updated_at != nil { fields = append ( fields , grant . FieldUpdatedAt ) } if m . deleted_at != nil { fields = append ( fields , grant . FieldDeletedAt ) } if m . hashed_grant_token != nil { fields = append ( fields , grant . FieldHashedGrantToken ) } if m . domain != nil { fields = append ( fields , grant . FieldDomain ) } if m . version != nil { fields = append ( fields , grant . FieldVersion ) } if m . allowed_http_methods != nil { fields = append ( fields , grant . FieldAllowedHTTPMethods ) } if m . paths != nil { fields = append ( fields , grant . FieldPaths ) } return fields }
Fields returns all fields that were changed during this mutation.
Fields returns all fields that were changed during this mutation .