WishlistQuery
Description
Returns wishlist items for the authenticated customer.
The operation name is wishlistItems.
Each row in the response represents a saved wishlist item linked to product/entry context.
Endpoint
query wishlistItems {
wishlistItems {
id
entry_id
name
added_at
}
}
Arguments
This query does not accept arguments.
Authentication
Requires authenticated GraphQL user context.
Return Values
Returns a list of WishlistItemType:
| Field | Type | Description |
|---|---|---|
| id | Int | Wishlist item ID. |
| entry_id | Int | Linked Craft entry ID (when available). |
| name | String | Product/display name saved to wishlist. |
| added_at | String | Date/time the item was added. |
| message | String | Optional response message field from type definition. |
Usage Example
query {
wishlistItems {
id
entry_id
name
added_at
}
}
Notes
- Items are resolved from plugin wishlist storage for the authenticated Craft user.
- If
entry_idis not directly stored, plugin tries to resolve it from product-linked entry. - Use
addToWishlist,removeFromWishlist, andclearWishlistmutations for state changes.