Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam AD0-E716 topic 1 question 2 discussion

Actual exam question from Adobe's AD0-E716
Question #: 2
Topic #: 1
[All AD0-E716 Questions]

An Adobe Commerce developer is creating a new module to extend the functionality of the cart. The module is installed in app/code/CompanyName/ModuleName/.
How would an Adobe Commerce developer extend the existing CartItemPrices GraphQL schema to include a custom base_price field?

  • A. Create and configure a <preference> for Magento\QuoteGraphQl\Model\Resolver\CartitemPrices that adds the base_price field in the resolve() function.
  • B. Add the following to the module's etc/schema.graphqls file:
  • C. Add the following to the module's etc/graphql/di.xml file:
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
arierave
1 month ago
Selected Answer: B
Indeed B, checked with copilot and claude
upvoted 1 times
...
some_gyy
3 months, 2 weeks ago
Selected Answer: B
To add to schema it's B, but it may also be a need to write a custom resolver
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...