m2graphql
m2graphql copied to clipboard
CatalogCategoryTree: String cannot represent non scalar value: array
Hi Vrann,
When executing a query on MagentoCatalogCategoryTree, I get the following error:
Are you planning on fixing this in the near future?
@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.