Skip to main content
Version: 2.0.0

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:

FieldTypeDescription
idIntWishlist item ID.
entry_idIntLinked Craft entry ID (when available).
nameStringProduct/display name saved to wishlist.
added_atStringDate/time the item was added.
messageStringOptional 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_id is not directly stored, plugin tries to resolve it from product-linked entry.
  • Use addToWishlist, removeFromWishlist, and clearWishlist mutations for state changes.