<@U06TM7M40RK> give me sample graphql query to get all datasets under kafka dataplatform
To retrieve all datasets under the Kafka data platform using GraphQL, you can use the search
query with a filter for the Kafka platform. Here’s a sample query:
query getKafkaDatasets {
search(input: {
type: DATASET,
query: "*",
start: 0,
count: 1000,
orFilters: [
{
and: [
{
field: "platform",
values: ["urn:li:dataPlatform:kafka"],
condition: CONTAIN
}
]
}
]
}) {
start
count
total
searchResults {
entity {
urn
... on Dataset {
name
}
}
}
}
}
This query searches for all datasets (type: DATASET
) that are associated with the Kafka platform (urn:li:dataPlatform:kafka
). The query: "*"
is used to match all datasets, and the orFilters
section specifies the condition to filter datasets by the Kafka platform.
Would you like more details on how to execute this query or any other aspect of using GraphQL with DataHub?
Sources:
- https://datahubspace.slack.com/archives/CUMUWQU66/p1673982732.950559|https://datahubspace.slack.com/archives/CUMUWQU66/p1673982732.950559
- https://github.com/datahub-project/datahub/blob/master/docs/api/graphql/graphql-best-practices.md|https://github.com/datahub-project/datahub/blob/master/docs/api/graphql/graphql-best-practices.md
0 button
0 button
Hint: Mention <@U06TM7M40RK> in the thread for followups.
Hi ! Did this interaction resolve your issue or do you still require assistance ?
Please tag @ RunLLM if you still need further assistance !
Or tag @Datahub Community Support if you require a person to take a look
Hope this helps ! ><