• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

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

Problem with install graphql

Modules
2
3
430
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 23 Mar 2024, 16:18

    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 26 Mar 2024, 06:25

      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 26 Mar 2024, 13:45

        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 28 May 2024, 01:39
        2 out of 3
        • First post
          2/3
          Last post