Hello. What would be the GraphQL query for me to g...
# troubleshoot
f
Hello. What would be the GraphQL query for me to get all the Published Datasources already ingested from Tableau? Having a hard time getting this from the docs 😄 .Thank you! I am using this endpoint on my local installation to try a bunch of queries
localhost:8080/api/graphiql
a
You can build the query using the UI, then with your browser e.g chrome find the request and copy the contents
f
Yeah I am already using the UI, but I cannot figure out what’s the query to get all the published datasources
What I would like to know is, what is the query
a
You can copy it from your browser dev tools
f
ohhhhh now I understand what you mean.
WIll give it a try
a
OK let me know if you dont succeed, I can just CP it
Can I ask you what is what you are trying to achieve here? Maybe there is a use case here 🤔 cause I've done this myself a few times
Maybe there could be a link to the graphiql page with the prebuilt query in the top right corner, where the new
Download
button is. Something like "Open in graphiQL"
f
Basically, for me the Tableau connector is not working, as it is only getting a subset of all my datasources and workbooks (I posted about this on #ingestion ). What I want to do is use the graphql API do fetch all the Published data sources that were ingested, so that I can filter them out of the complete datasources list and understand which datasources are not being ingested, and maybe by doing so , I will figure out what the problem is
thank you 2
Did you also come across this Tableau connector problem?
@acoustic-quill-54426 I don’t have any download button on my Ui
a
Its in the search page at the top-right corner
f
Nice, didn’t see this before. Thank you!
a
FYI there is a #integration-tableau-datahub 👌
f
Thank you! I wasn’t aware
So this was the query I was looking for:
Copy code
{
  search(input: { type: DATASET, query: "", start: 0, count: 10, filters: [{field: "platform", value: "urn:li:dataPlatform:tableau"}, {field: "typeNames", value: "Published Data Source"}]}) {
    total
    searchResults {
      entity {
         urn
         type
         ...on Dataset {
            name
          properties {
            name,
            qualifiedName
          }
         }
      }
    }
  }
}
Thanks a lot!
🙌 3