Hello dear devs,
I'm presenting a workshop on May 14, and would love to use this documentation as an exercise for attendees to do on their own.
I'm going to list some areas that are not clear, in the hope that one of the contributors can modify this great example with the latest code.
I'll match the instructions from the file here:
It seems to me that storefront-lwc/app/productDetailExtension.js. It should be in a different place based on where this type of code appears in
@sfcc-bff/productdetailextensionapi/src/productDetailExtension.js
The code should probably be similar to what appears in productapi.js:
New TypeDefs and Resolvers identified (or should we just add a new typedef and resolver for productDetailsRecommendations?)
core.registerExtension(API_EXTENSIONS_KEY, function() {
return new productDetailExtension(core);
});
There should be a path to this TypeDef inside the @sfcc-bff.
Not sure where this code resides: seems like it should be in the storefront-lwc layer.
If we do steps 1-3 in the BFF, then the code in this step becomes:
import '@sfcc-bff/productdetailextensionapi
if we make the productdetailextension just a new TypeDef and Resolver inside productapi, then we don't need to add it as an extension.
The current code does not use adaptors, so this code should move to a gqlQuery.js file.
Seems to me we should invoke a commerce-recommendations lwc component that would be created as part of this exercise. But I could be missing a simpler solution here.
Hello dear devs, I'm presenting a workshop on May 14, and would love to use this documentation as an exercise for attendees to do on their own. I'm going to list some areas that are not clear, in the hope that one of the contributors can modify this great example with the latest code. I'll match the instructions from the file here:
Thanks, Jorge