Log in
Model

MaskedCartId

Magento\QuoteGraphQl\Model\Resolver\MaskedCartId

What it does

This GraphQL resolver retrieves or generates a masked cart ID for a quote in Magento 2's GraphQL API.

Developers use this when they need to expose cart IDs in GraphQL responses without revealing the actual database quote ID, providing a security layer for guest and customer carts.

The resolver automatically creates a masked ID if one doesn't exist for the given cart.

Public Methods

  • resolve()