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

Bagisto

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

Graphql error 'Duplicate definition cartDetail found when merging'

General Discussion
2
4
2.0k
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.
  • W
    wallace last edited by wallace 19 Aug 2021, 11:25 19 Aug 2021, 10:25

    Hi all,
    I've installed GraphQL by following instruction on https://github.com/bagisto/headless-ecommerce. I've also installed Lighthouse.

    When I try to launch an Authentication request on my server (both with Postman or graphql-playground) I have the following message: 'Duplicate definition cartDetail found when merging' Screenshot at ago 19 12-20-06.png.

    I've alo tryed to add Params and Headers:
    Screenshot at ago 19 12-22-36.png Screenshot at ago 19 12-23-07.png
    but I still have the same error
    Screenshot at ago 19 12-24-22.png

    What am I doing wrong?

    Thank you in advance!

    1 Reply Last reply Reply Quote 0
    • W
      wallace last edited by 25 Aug 2021, 06:50

      anyone who installed Graphql?

      1 Reply Last reply Reply Quote 0
      • 8 days later
      • A
        althafn last edited by 1 Sept 2021, 19:12

        @wallace did you manage to sort this out? There doesn't seem to be enough help around here 😞

        1 Reply Last reply Reply Quote 0
        • A
          althafn last edited by 1 Sept 2021, 20:02

          @wallace hey Idk if you've figured it out but the issue was in the schema.graphql file. The documentation says

          ' put all shop schemas #import /shop//.graphql after #import /promotion/*.graphql this line.'

          This is what caused the error. The shop schemas are already imported on the top and then when we do at the bottom, it says that its duplicating. Just remove that line and it works like charm.

          Hope this helps 🙂

          1 Reply Last reply Reply Quote 0
          2 out of 4
          • First post
            2/4
            Last post