Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 44,761
    • Issues 44,761
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,330
    • Merge requests 1,330
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #233063
Closed
Open
Issue created Jul 30, 2020 by charlie ablett@cablett🛠Maintainer

Discussion: GraphQL mutation granularity

Recently there have been some questions regarding mutations and how engineers should handle GraphQL mutations.

The broad questions:

  • Should mutations be fine-grained ("update issue weight") or coarse-grained ("update issue")
  • Should we set a standard for mutation granularity?

Our service-oriented architecture is such that most mutations that target a similar object call the same kind of service (in the example above, UpdateIssueService). So it's a matter of figuring out which we prefer.

I think it might be worth discussing the pros vs cons (on both frontend and backend) of both approaches.

Edited Jul 31, 2020 by charlie ablett
Assignee
Assign to
Time tracking