{"data":{"id":"magento2-37746","source":"github-pr","sourceRef":"magento/magento2#37746","title":"Missing key \\\"model\\\" in Wishlist value data","pr":{"number":37746,"url":"https://github.com/magento/magento2/pull/37746","author":"Vasudev-22","mergedAt":"2026-07-17T09:36:22Z","mergeCommit":"d9d4e3b3d4d882cd1166fd3c6e79e0eddcdd3884","headCommit":"38af8e2f1276d77cd7f0b16a62fc63b5277fa82a","baseRef":"2.4-develop","diffSha256":"3568084680993ec591d24e88ce1c209c4740eed669d2fba0e67eff658e1c2dae"},"issues":[{"number":36909,"url":"https://github.com/magento/magento2/issues/36909","title":"Missing key \\\"model\\\" in Wishlist value data","labels":["Area: Product","Component: Wishlist","Issue: Confirmed","Priority: P2","Progress: PR Created","Progress: PR in progress","Progress: done","Project: GraphQL","Reported on 2.4.5-p1","Reproduced on 2.4.x"],"kind":"human"}],"fixedIn":null,"containingTags":[],"reportedOn":"2.4.5-p1","codeMatch":{"2.4.6":"clean","2.4.6-p1":"clean","2.4.6-p2":"clean","2.4.6-p3":"clean","2.4.6-p4":"clean","2.4.6-p5":"clean","2.4.6-p6":"clean","2.4.6-p7":"clean","2.4.6-p8":"clean","2.4.6-p9":"clean","2.4.6-p10":"clean","2.4.6-p11":"clean","2.4.6-p12":"clean","2.4.6-p13":"clean","2.4.6-p14":"clean","2.4.6-p15":"clean","2.4.7":"clean","2.4.7-p1":"clean","2.4.7-p2":"clean","2.4.7-p3":"clean","2.4.7-p4":"clean","2.4.7-p5":"clean","2.4.7-p6":"clean","2.4.7-p7":"clean","2.4.7-p8":"clean","2.4.7-p9":"clean","2.4.7-p10":"clean","2.4.8":"conflict","2.4.8-p1":"conflict","2.4.8-p2":"conflict","2.4.8-p3":"conflict","2.4.8-p4":"conflict","2.4.8-p5":"conflict","2.4.9":"conflict"},"affectedVersions":["2.4.6","2.4.6-p1","2.4.6-p2","2.4.6-p3","2.4.6-p4","2.4.6-p5","2.4.6-p6","2.4.6-p7","2.4.6-p8","2.4.6-p9","2.4.6-p10","2.4.6-p11","2.4.6-p12","2.4.6-p13","2.4.6-p14","2.4.6-p15","2.4.7","2.4.7-p1","2.4.7-p2","2.4.7-p3","2.4.7-p4","2.4.7-p5","2.4.7-p6","2.4.7-p7","2.4.7-p8","2.4.7-p9","2.4.7-p10"],"components":["magento/module-wishlist-graph-ql"],"files":[{"path":"app/code/Magento/WishlistGraphQl/Model/Resolver/WishlistItemsResolver.php","change":"modified","package":"magento/module-wishlist-graph-ql"}],"stripped":{"tests":[],"docs":[],"outsideCode":[]},"linesChanged":14,"mergeBatched":false,"excluded":null,"sections":{"description":"```\n{\n    \"errors\": [\n        {\n            \"debugMessage\": \"Missing key \\\"model\\\" in Wishlist value data\",\n            \"message\": \"Internal server error\",\n            \"category\": \"internal\",\n            \"locations\": [\n                {\n                    \"line\": 3,\n                    \"column\": 5\n                }\n            ],\n            \"path\": [\n                \"wishlist\",\n                \"items\"\n            ]\n        }\n    ],\n    \"data\": {\n        \"wishlist\": {\n            \"items\": null,\n            \"items_count\": null,\n            \"sharing_code\": null\n        }\n    }\n}\n```","stepsToReproduce":"1. Create a customer\n\n```\nmutation {\n\n  createCustomer(\n\n    input: {\n\n      firstname: \"John\"\n\n      lastname: \"Doe\"\n\n      email: \"test1@example.com\"\n\n      password: \"Test1234\"\n\n      is_subscribed: true\n\n    }\n\n  ) {\n\n    customer {\n\n      firstname\n\n      lastname\n\n      email\n\n      is_subscribed\n\n    }\n\n  }\n\n}\n```\n2. Get a graphQL token\n```\nmutation {\n  generateCustomerToken(email: \"test1@example.com\", password: \"Test1234\") {\n    token\n  }\n}\n```\n\n3. Query wishlist\n\n```\nquery {\n  wishlist {\n    items {\n      added_at\n      description\n      id\n\n      product {\n        name\n        image {\n          url\n        }\n        sku\n      }\n      qty\n    }\n    items_count\n    sharing_code\n  }\n}\n\n```","expectedResult":"```\n    \"data\": {\n        \"wishlist\": {\n            \"items\": null,\n            \"items_count\": null,\n            \"sharing_code\": null\n        }\n    }\n```","actualResult":"```\n{\n    \"errors\": [\n        {\n            \"debugMessage\": \"Missing key \\\"model\\\" in Wishlist value data\",\n            \"message\": \"Internal server error\",\n            \"category\": \"internal\",\n            \"locations\": [\n                {\n                    \"line\": 3,\n                    \"column\": 5\n                }\n            ],\n            \"path\": [\n                \"wishlist\",\n                \"items\"\n            ]\n        }\n    ],\n    \"data\": {\n        \"wishlist\": {\n            \"items\": null,\n            \"items_count\": null,\n            \"sharing_code\": null\n        }\n    }\n}\n```","source":"issue"},"signatures":[],"labels":{"area":["Product"],"component":["Wishlist"],"priority":"P2","severity":null,"reportedOn":["2.4.5-p1"]},"categories":[],"triage":{"model":"@cf/cloudflare/clef","requestHash":"5945af8a920d166abf21eb5da38e04231d58e81cba6df4f5bd9f2c64523f42c6","isBugfix":0.9844,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9733,"feature":0.0046,"refactor":0.0108,"tests_only":0.0047,"docs_only":0.0031,"dependency":0.0035},"confidence":0.937},"scope":{"score":0.6859,"probabilities":{"0":0.4199,"1":0.4743,"2":0.1058},"confidence":0.1187},"risk":{"score":0.2125,"probabilities":{"0":0.8215,"1":0.1446,"2":0.0339},"confidence":0.5453},"area":{"choice":"graphql_api","probabilities":{"catalog":0.0072,"checkout":0.0045,"customer":0.0307,"admin":0.0041,"graphql_api":0.9312,"framework":0.0056,"frontend":0.0046,"other":0.0121},"confidence":0.8497},"securityRelevant":0.0162,"reportedVersion":{"choice":"2.4.5-p1","probabilities":{"2.4.0":0.0016,"2.4.0-p1":0.0025,"2.4.1":0.0019,"2.4.1-p1":0.0025,"2.4.2":0.0024,"2.4.2-p1":0.0033,"2.4.2-p2":0.0045,"2.4.3":0.0037,"2.4.3-p1":0.0048,"2.4.3-p2":0.006,"2.4.3-p3":0.0031,"2.4.4":0.0039,"2.4.4-p1":0.0041,"2.4.4-p10":0.0035,"2.4.4-p11":0.0038,"2.4.4-p12":0.0038,"2.4.4-p13":0.0034,"2.4.4-p14":0.0051,"2.4.4-p15":0.0044,"2.4.4-p16":0.0037,"2.4.4-p17":0.0038,"2.4.4-p18":0.0039,"2.4.4-p2":0.0026,"2.4.4-p3":0.002,"2.4.4-p4":0.0024,"2.4.4-p5":0.0029,"2.4.4-p6":0.0028,"2.4.4-p7":0.0025,"2.4.4-p8":0.0029,"2.4.4-p9":0.003,"2.4.5":0.0555,"2.4.5-p1":0.5862,"2.4.5-p10":0.0059,"2.4.5-p11":0.0086,"2.4.5-p12":0.0073,"2.4.5-p13":0.0073,"2.4.5-p14":0.0068,"2.4.5-p15":0.0067,"2.4.5-p16":0.0065,"2.4.5-p17":0.0082,"2.4.5-p2":0.0113,"2.4.5-p3":0.0135,"2.4.5-p4":0.0154,"2.4.5-p5":0.0087,"2.4.5-p6":0.0071,"2.4.5-p7":0.0076,"2.4.5-p8":0.0052,"2.4.5-p9":0.0056,"2.4.6":0.0027,"2.4.6-p1":0.0042,"2.4.6-p10":0.0031,"2.4.6-p11":0.003,"2.4.6-p12":0.0032,"2.4.6-p13":0.0039,"2.4.6-p14":0.0036,"2.4.6-p15":0.0036,"2.4.6-p2":0.0024,"2.4.6-p3":0.0034,"2.4.6-p4":0.0038,"2.4.6-p5":0.0038,"2.4.6-p6":0.0032,"2.4.6-p7":0.0034,"2.4.6-p8":0.0027,"2.4.6-p9":0.0021,"2.4.7":0.0022,"2.4.7-p1":0.0029,"2.4.7-p10":0.0024,"2.4.7-p2":0.0026,"2.4.7-p3":0.0033,"2.4.7-p4":0.0045,"2.4.7-p5":0.0044,"2.4.7-p6":0.0044,"2.4.7-p7":0.0039,"2.4.7-p8":0.0029,"2.4.7-p9":0.0023,"2.4.8":0.0024,"2.4.8-p1":0.0033,"2.4.8-p2":0.0042,"2.4.8-p3":0.0041,"2.4.8-p4":0.0051,"2.4.8-p5":0.0051,"2.4.9":0.0035,"unspecified":0.0102},"confidence":0.3408},"backportWorthy":{"score":1.7298,"probabilities":{"0":0.0469,"1":0.1763,"2":0.7768},"confidence":0.455}},"curated":{"title":"GraphQL wishlist query returns Missing key \"model\" in Wishlist value data","description":"For a customer account created with a token from GraphQl, without logged in through frontend, the wishlist query has an Internal server error with Missing key \"model\" in Wishlist value data. When value data has no model, WishlistItemsResolver now uses WishlistFactory to create one instead of the LocalizedException, so the query has empty items.","categories":[],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":null},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-37746 details"}