Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Interact with Graphql API from Apache NIFI

avatar
Explorer

Hello ,

 

I dont have much knowledge about Graphql APIs.

I need help about How to access these APIs with Http request?

How to send query/mutation to graphql API to get a JWT?

and can NIFI Invoke HTTP processor send request to these APIs?

Please let me know if someone knows about it .

 

Thanks and Regards,

 

 

3 REPLIES 3

avatar
Moderator

Hello @Pr1 ,

 

thank you for your enquiries about Graphql API access via REST and NiFi REST interactions.

 

Found this article about GraphQL via REST and the NiFi REST API Reference documentation.

 

Have you seen these already?

 

Thank you:

Ferenc

 


Ferenc Erdelyi, Technical Solutions Manager

Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

Learn more about the Cloudera Community:

avatar
New Contributor

If you're not afraid to get your hands dirty, you can use InvokeHttp

Here's a very simple example: 

 

{"query":  "query { users { me { email } } }"}

avatar
Explorer

If you want to GET the data form the GraphQL by using CURL:
Then Choose InvokeHTTP Processor.

HTTP Method: GET

HTTP URL: Your URL?query={queryUser{attribute1,attribute2,attribute3}}

Socket Connect Timeout : 5 mins

By this you can get data in the Response Relationship.