QuestionQ3
Orders, Payments, Shipping, and TaxAn Adobe Commerce Architect is developing a new GraphQL API mutation to change how configurable products are added to the cart. The mutation accepts a configurable product ID. If the supplied product has only one variant, the mutation must add that variant to the cart and return a non-null Cart type. If the configurable product has multiple variants, the mutation must return a non-null ConfigurableProduct type.
The mutation declaration is as follows:

How should the Adobe Commerce Architect declare this mutation’s output?
- A

- B

- C

Community Discussion