Skip to content

Refactor: use value objects instead of primitive types #94

@mihailozarinschi

Description

@mihailozarinschi

Goals:

  • Get rid of pkg/validate package
  • Get rid of graphql/mutation.validator.go
  • Have only valid objects everywhere in code
  • Reduce possibility for passing parameters in functions in the wrong order
  • Write code a bit faster because of better and faster suggestions from IDE with help of type matching

AC:

Common:

Login account:

User profile:

  • Name
  • ShortBio
  • Vote (kudos)

Community:

  • Name
  • Tagline
  • ExternalLinks
  • CrosspostTelegramChannels
  • WatchOption
  • Vote (kudos)

Message:

  • Title
  • Body
  • MentionedUsers
  • Author
  • PostedInCommunity
  • RepliedToMessage
  • WatchOption
  • Vote

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions