Bagisto Forum

    Bagisto

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

    Graphql error 'Duplicate definition cartDetail found when merging'

    General Discussion
    2
    4
    2006
    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

      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

        anyone who installed Graphql?

        1 Reply Last reply Reply Quote 0
        • A
          althafn last edited by

          @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

            @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
            • First post
              Last post