0

I have created a custom module that will override the ProductInterface class in graphQl enter image description here

enter image description here

as you can se i have mentioned the image_banner as string and i checked the banner.php its also returing string but in graqphl response im getting this enter image description here

please help

0

Can you provide errors from var/log/exception.log file? It looks like error in logic and not in graphql-schema.

New contributor
Borys Zaika is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
0

It looks like you have modified the graphql schema after your first query. The change that you have made will probably be change Int to String in the schema.

Perhaps you can solve it by running setup:upgrade.

I would recommend to use https://github.com/mage2tv/magento-cache-clean which will automatically flush the stitched schema when you make modifications to a schema file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.