m2graphql icon indicating copy to clipboard operation
m2graphql copied to clipboard

CatalogCategoryTree: String cannot represent non scalar value: array

Open alexandersch opened this issue 7 years ago • 1 comments

Hi Vrann,

When executing a query on MagentoCatalogCategoryTree, I get the following error:

schermafbeelding 2017-09-27 om 11 02 15

Are you planning on fixing this in the near future?

alexandersch avatar Sep 27 '17 09:09 alexandersch

@Alexandersch good catch, this is caused by the fact that GraphQL does not allow to have recursive objects, while Category Tree is recursive. A temporal fix was to substitute the reference to the children category with the object of type String. A better fix would be to allow just limited level of recursion.

vrann avatar Oct 05 '17 10:10 vrann