View all questions & answers for the AD0-E725 exam
A Developer is tasked with extending the GraphQL capabilities of a client’s Adobe Commerce project by adding custom attributes to the product query.
Which step should the Developer take to correctly implement this GraphQL customization?
Extend the ProductInterface by creating a schema.graphqls file in the custom module's etc directory.
Add new attributes in the Adobe Commerce admin panel to reflect the additions.
Add aroundGetList and afterGetList plugins to the ProductRepositoryInterface to reflect the new attributes.
The correct way to extend GraphQL is to extend the schema via schema.graphqls.
Define new fields for ProductInterface.
Provide a resolver class to return the attribute values.
B is incorrect: adding attributes in admin does not automatically expose them in GraphQL.
C is incorrect: repository plugins affect service contracts, not GraphQL schema definitions.
Submit