Magento 2 comes with comprehensive GraphQL coverage for most e-commerce operations. This section explores all available queries and mutations.
- Catalog Operations
- Product queries
- Category queries
- Product search and filtering
- Product types (simple, configurable, grouped, bundle)
- Custom attributes
- Reviews and ratings
- Customer Operations
- Customer registration
- Customer authentication
- Profile management
- Address management
- Order history
- Wishlist operations
- Cart & Checkout
- Cart creation and management
- Adding products to cart
- Shipping methods
- Payment methods
- Order placement
- Guest checkout
- CMS & Store Config
- CMS pages and blocks
- Store configuration
- Currency
- Countries
- Available stores
- Additional Features
- Compare products
- Recently viewed
- Gift cards
- Reward points
- Store credit
By the end of this section, you will:
- Know all available built-in queries and mutations
- Understand how to query different product types
- Be able to implement cart and checkout flows
- Know how to fetch CMS content
- Understand customer authentication flows
{
products(
filter: { sku: { eq: "24-MB01" } }
) {
items {
sku
name
price {
regularPrice {
amount {
value
currency
}
}
}
}
}
}{
categoryList {
id
name
url_path
children {
id
name
}
}
}mutation {
generateCustomerToken(
email: "customer@example.com"
password: "password123"
) {
token
}
}mutation {
createEmptyCart
}- Product Listing Page: See Catalog - Product Listing
- Product Detail Page: See Catalog - Product Detail
- Category Page: See Catalog - Categories
- Login/Register: See Customer - Authentication
- Add to Cart: See Cart - Add Products
- Checkout: See Cart - Checkout Flow
Explore each section to learn about specific functionality, starting with Catalog Operations.
← Previous: Architecture | Back to Main | Next: Custom Endpoints →