Valid AD0-E716 Dumps shared by ExamDiscuss.com for Helping Passing AD0-E716 Exam! ExamDiscuss.com now offer the newest AD0-E716 exam dumps, the ExamDiscuss.com AD0-E716 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com AD0-E716 dumps with Test Engine here:
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 CartltemPrices GraphQL schema to include a custom base_price field?
Correct Answer: B
The developer can extend the existing CartltemPrices GraphQL schema to include a custom base_price field by adding the following code to the module's etc/schema.graphqls file: extend type CartltemPrices { base_price: Money! @doc(description: "The base price of the cart item") } This code adds a new field called base_price to the CartltemPrices type and specifies that it is of type Money and it is not nullable. The @doc directive adds a description for the field that will be shown in the schema documentation. The developer also needs to create a custom resolver class for the base_price field and declare it in the di.xml file of the module. Verified References: [Magento 2.4 DevDocs] [Magento Stack Exchange]