Browse Source

docs: Fix two bugs and add "id" for coherency with other examples (#3208)

Javier Elices 1 year ago
parent
commit
c8f4d420d2
1 changed files with 2 additions and 1 deletions
  1. 2 1
      docs/docs/guides/developer-guide/plugins/index.mdx

+ 2 - 1
docs/docs/guides/developer-guide/plugins/index.mdx

@@ -528,7 +528,7 @@ export class WishlistShopResolver {
 
     @Query()
     @Allow(Permission.Owner)
-    activeCustomerWishlist(@Ctx() ctx: RequestContext) {
+    async activeCustomerWishlist(@Ctx() ctx: RequestContext) {
         return this.wishlistService.getWishlistItems(ctx);
     }
 
@@ -760,6 +760,7 @@ mutation RemoveFromWishlist {
     removeFromWishlist(itemId: "4") {
         id
         productVariant {
+            id
             name
         }
     }