vrann/m2graphql

CatalogCategoryTree: String cannot represent non scalar value: array

Opened this issue · 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?

vrann commented

@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.