Skip to content

GraphQL documentation contains fields that are not defined in the schema #39821

@DuckThom

Description

@DuckThom

The GraphQL documentation for the Discount type lists fields that are not present in neither 2.4.7 nor 2.4.8 (open source and enterprise).

https://developer.adobe.com/commerce/webapi/graphql-api/#definition-Discount

Image

The only fields that are in the schema are these:

magento/module-quote-graph-ql/etc/schema.graphqls

type Discount @doc(description:"Defines an individual discount. A discount can be applied to the cart as a whole or to an item, shipping.") {
    amount: Money! @doc(description:"The amount of the discount.")
    applied_to: CartDiscountType! @doc(description:"The type of the entity the discount is applied to.")
    label: String! @doc(description:"A description of the discount.")
}

And this one:

magento/module-sales-rule-graph-ql/etc/schema.graphqls

type Discount {
    coupon: AppliedCoupon @resolver(class: "Magento\\SalesRuleGraphQl\\Model\\Resolver\\Coupon") @doc(description:"The coupon related to the discount.")
}

The fields is_discounting_locked, type and value are not defined anywhere in the schema files.

Image

Metadata

Metadata

Assignees

Labels

Issue: needs updateAdditional information is require, waiting for responseReported on 2.4.8Indicates original Magento version for the Issue report.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions