Model
GetVisibleProduct
Magento\SendFriendGraphQl\Model\Provider\GetVisibleProduct
What it does
This provider class retrieves a product by ID and validates that it is visible in the catalog (not hidden).
Developers use this when implementing GraphQL mutations or queries that need to ensure a product exists and is publicly accessible, such as the 'Send to Friend' feature, before allowing operations on it.
Public Methods
- execute()