Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Problem with install graphql

    Modules
    2
    3
    424
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      josuex220 last edited by

      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?
      8980547b-bf7b-4d8a-beb9-e33a520053b5-image.png

      Thank you very much

      1 Reply Last reply Reply Quote 0
      • Rishabh-Webkul
        Rishabh-Webkul last edited by

        Hello @josuex220

        Greetings of the day..!!

        GraphQL API is not compatible with the latest version 2.1.2

        ebnk,efnkne.png

        It is compatible till 2.0.0 we are working on it to make it compatible with the latest version.

        Thanks & Regards..!!

        1 Reply Last reply Reply Quote 0
        • Rishabh-Webkul
          Rishabh-Webkul last edited by

          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.

          changes.png

          and then run this below command

          composer require bagisto/graphql-api dev-main

          Thanks & Regards..!!

          1 Reply Last reply Reply Quote 0
          • Referenced by  T tmss 
          • First post
            Last post