How do I set up a connector for Lumar which uses GraphQL?
I'm trying to build a connector for Lumar(formerly Deepcrawl) but I am stuck. I've found my way to the custom connector in DOMO but from there I am lost. I have Lumar's API documentation(
but I'm not a programmer by trade and no idea how to translate that into the custom connector. Any help would be greatly appreciated.Best Answer
-
There's three steps to configuring GraphQL
- Describe your data (schema)
- Ask for what you want (query)
- Process your data
Underneath the hood GraphQL is just like another API where you format a request, send your request and then process the data you get back from that request. The only difference is that you're defining what that data should look like rather than having the API tell you what the data looks like.
I'd recommend starting with
to understand how the structure of your requests should be. Once you have that understood you can follow the developer.domo.com documentation for custom connectors to do authentication and do your requests.Alternatively you can have a consultant write the custom connector for you.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**2
Answers
-
There's three steps to configuring GraphQL
- Describe your data (schema)
- Ask for what you want (query)
- Process your data
Underneath the hood GraphQL is just like another API where you format a request, send your request and then process the data you get back from that request. The only difference is that you're defining what that data should look like rather than having the API tell you what the data looks like.
I'd recommend starting with
to understand how the structure of your requests should be. Once you have that understood you can follow the developer.domo.com documentation for custom connectors to do authentication and do your requests.Alternatively you can have a consultant write the custom connector for you.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**2 -
Ok. I'll need to read through that. If I understand this then I would need to create multiple connectors depending on the data I need? And what language do I use?
0 -
You wouldn't necessarily need to create separate connectors but define different reports within your connector to allow users to select and handle those selections in your code to call the correct endpoint.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**1 -
Which language should I be using to write this connector?
0 -
Custom Domo Connectors are written in the ES5 version of JavaScript.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**1 -
@user029082, You can also start by trying some things in Postman. Postman has a GraphQL client that could return to you your schema. Their demo in their documenation shows that and I tried it with my GraphQL API and it returned it to me. It's a good way to get familiar. But that's not all.
Postman's documentation shows how to make a request to a GraphQL API using the standard HTTP or Curl requests. I think the best solution they give is to write the query using JSON in the body . It's a little tricky at first, but I was able to muddle through it and create syntax that is compatible with Domo's No-Code JSON connector. I used the OAuth version of this connector and retrieved the data I was seeking. I will be building a fair number of these for a project. But the nice thing is that I didn't have to build a new connector.
1 -
I haven't circled back to this yet but that sounds like an option. I was also going to give Chat GPT a try and see what it can whip up for me.
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 738 Beast Mode
- 57 App Studio
- 40 Variables
- 685 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 124 Manage
- 121 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive