Problem with install graphql
-
Hey guys,
I hope all is well with you,I'm facing a problem when trying to install graphql on bagisto in version 2.1.2
Has anyone managed to overcome this error?
Thank you very much
-
Hello @josuex220
Greetings of the day..!!
GraphQL API is not compatible with the latest version 2.1.2
It is compatible till 2.0.0 we are working on it to make it compatible with the latest version.
Thanks & Regards..!!
-
Hello @josuex220
And if you want to make it compatible to the latest version go to
vendor >> bagisto >> graphql-api >> src >> Models >> CatalogRule >> CatalogRule.php this file and make a slight change in these two functions i.e. catalog_rule_products() and catalog_rule_product_prices() and apply return type HasMany as shown in the below image.and then run this below command
composer require bagisto/graphql-api dev-main
Thanks & Regards..!!
-