Skip to main content
Tutorial

How to use graphQL queries in ONE Desktop


Anna_Nebesova
Ataccamer
Forum|alt.badge.img+3

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

Did this topic help you find an answer to your question?

7 replies

Forum|alt.badge.img+2

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. 


anna.spakova
Ataccamer
Forum|alt.badge.img+3
  • Ataccamer
  • 141 replies
  • September 29, 2022

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

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


Forum|alt.badge.img+2

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


Forum|alt.badge.img+2

Hi @anna.spakova , can you make a detailed post on how to work with graphql in ONE Desktop IDE. I have a requirement of the same task.


anna.spakova
Ataccamer
Forum|alt.badge.img+3

Hi @suryakanth.Emisha , what would be specifically what you are interested in? There are a couple more articles on community covering this topic e.g. 

 or 

 

Can you let me know what are you missing? :) I will be happy to help.

Kind regards,

Anna


Forum|alt.badge.img+2

@anna.spakova I've already gone through the documentations which you've shared in the above reply. My task is to run Audit apis using desktop IDE. So let me know if there's anything related to audit api through IDE.


anna.spakova
Ataccamer
Forum|alt.badge.img+3

Hi @suryakanth.Emisha , see attached an example of the call via IDE. It was used to create statistics of active users, so take it as an example please. The API endpoint is different than the graphql endpoint. The address of the endpoint should be part of the deployment handover document (in case of a self-managed installation) or can be obtained via our support (in case of PaaS installations).

We have the Audit API documented here: https://docs.ataccama.com/one/latest/one-apis/audit-api.html

Please let me know if you need any additional help.

Kind regards,

Anna


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings