Tutorial

How to use graphQL queries in ONE Desktop

  • 17 March 2022
  • 3 replies
  • 343 views

Userlevel 1
Badge +1

Let‘ say you have a graphQL query that works in a Postman or in Ataccama playground, and you want to use it in a plan in ONE Desktop. How to do it?

You cannot simply copy and paste the JSON body into JSON call step. You have to reformat it. You can use the COPY CURL button in Playground (in the upper right corner) or similar button Code in Postman. That will create a curl command that also contains the body:

Playground
Curl command

This body can be then pasted into JSON call. The query method needs to be set as POST.

JSON call step configuration

 

Want to learn more about the graphQL API? Check out the documentation: https://support.ataccama.com/home/docs/aip/latest/development-guides/one-development-guide/one-api


3 replies

Userlevel 4
Badge +3

Hi Anna, Thank you for this. Could you make a series out of this?

 

I understand it needs configuration and access security as well?

Would be nice to understand how you did this:

Let‘ say you have a graphQL query that works in a Postman or in Ataccama playground, and you want to use it in a plan in ONE Desktop. 

Userlevel 5
Badge +9

Hello @Marnix Wisselaar , can you please elaborate what you mean by the series? 

As for the configuration and access security, you mean the Playground? 

Userlevel 4
Badge +3

There were quite some steps to get it to work. I’ll ask.

Reply