Skip to content

Added the countable connection to the todo type

  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA

What does this MR do and why?

Related to the todo page migration to Vue: !147301 (merged)

This MR adds the countable connection to the todo type so that we can get the number of todos returned by the GraphQL endpoint 🙂

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

N.A.

How to set up and validate locally

  1. Go to the graphql-explorer endpoint (e.g. http://gdk.test:3000/-/graphql-explorer)
  2. Run a query similar to the next one:
    {
      currentUser {
        todos(state: [pending]) {
          count
        }
      }
    }
  3. It will error on master but return the number of results on this branch
Edited by 🤖 GitLab Bot 🤖

Merge request reports

Loading