doc(graphql): add some examples (#3867)

This commit is contained in:
Aseem Bansal 2022-01-13 00:44:31 +05:30 committed by GitHub
parent 988baeb467
commit 611feb95c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,6 +68,49 @@ curl --location --request POST 'http://localhost:8080/api/graphql' \
Note that per-field filtering criteria may additionally be provided.
### Querying for owners of a dataset
As GraphQL:
```graphql
query {
dataset(urn: "urn:li:dataset:(urn:li:dataPlatform:hdfs,SampleHdfsDataset,PROD)") {
ownership {
owners {
owner {
... on CorpUser {
urn
type
}
... on CorpGroup {
urn
type
}
}
}
}
}
}
```
### Querying for tags of a dataset
As GraphQL:
```graphql
query {
dataset(urn: "urn:li:dataset:(urn:li:dataPlatform:hdfs,SampleHdfsDataset,PROD)") {
tags {
tags {
tag {
name
}
}
}
}
}
```
### Coming soon
List Metadata Entities! listDatasets, listDashboards, listCharts, listDataFlows, listDataJobs, listTags