GraphQL connector

  • rushikesh-biradar
        Has successfully completed the online course Basics (100)
      1 year ago #38539

      Hello Everyone
      is there any way to use GraphQL connectors in Simplifier?

      Jennifer Häfner
          Has successfully completed the online course Intermediate (200)
          Has successfully completed the online course Advanced (300)
          Has successfully completed the online course Basics (100)
          Has successfully completed the online course Advanced (310)
          Has successfully completed the online course Advanced (320)
          Has successfully completed the Intermediate Certification
          Has successfully completed the Advanced Certification
        1 year ago #38614
        Up
        1
        Down
        ::

        Hi Rushikesh,

        Simplifier has no dedicated connector for GraphQL, however, since GraphQL servers should be able to handle HTTP GET and POST methods, you can use Simplifier’s REST connector.

        Here is GraphQL’s documentation on the structure of HTTP requests: https://graphql.org/learn/serving-over-http/

        I tested the functionality with the Star Wars open source GraphQL API. In the attached screenshot, you can see that I added the query parameter ‘query’ to the endpoint URL. Inside this parameter, I inserted the request to the GraphQL API. So in general, the connection should work.

        Attachments:
        You must be logged in to view attached files.
        rushikesh-biradar
            Has successfully completed the online course Basics (100)
          1 year ago #39868
          Up
          0
          Down
          ::

          Get method is working fine but I’m not able to implement post method in the connector,
          Is it feasible if it is how do we implement POST method?
          I used  Star Wars open source GraphQL API Tried to use mutation udate and delete user in it but it was not successful.

           

          rushikesh-biradar
              Has successfully completed the online course Basics (100)
            1 year ago #39906
            Up
            0
            Down
            ::

            How do we use mutations for updation, insertion and deletion purpose?

          Viewing 4 posts - 1 through 4 (of 4 total)

          You must be logged in to reply to this topic.