mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-03 07:09:21 +00:00
fix(docs): Add correct usage of orFilters in search API docs (#11082)
Co-authored-by: Jay <159848059+jayacryl@users.noreply.github.com>
This commit is contained in:
parent
28f1c92cdf
commit
e4e77c35ce
@ -148,24 +148,42 @@ The same GraphQL API that powers the Search UI can be used
|
|||||||
for integrations and programmatic use-cases.
|
for integrations and programmatic use-cases.
|
||||||
|
|
||||||
```
|
```
|
||||||
# Example query
|
# Example query - search for datasets matching the example_query_text who have the Dimension tag applied to a schema field and are from the data platform looker
|
||||||
{
|
query searchEntities {
|
||||||
searchAcrossEntities(
|
search(
|
||||||
input: {types: [], query: "*", start: 0, count: 10, filters: [{field: "fieldTags", value: "urn:li:tag:Dimension"}]}
|
input: {
|
||||||
|
type: DATASET,
|
||||||
|
query: "example_query_text",
|
||||||
|
orFilters: [
|
||||||
|
{
|
||||||
|
and: [
|
||||||
|
{
|
||||||
|
field: "fieldTags",
|
||||||
|
values: ["urn:li:tag:Dimension"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: "platform",
|
||||||
|
values: ["urn:li:dataPlatform:looker"]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
start: 0,
|
||||||
|
count: 10
|
||||||
|
}
|
||||||
) {
|
) {
|
||||||
start
|
start
|
||||||
count
|
count
|
||||||
total
|
total
|
||||||
searchResults {
|
searchResults {
|
||||||
entity {
|
entity {
|
||||||
|
urn
|
||||||
type
|
type
|
||||||
... on Dataset {
|
... on Dataset {
|
||||||
urn
|
name
|
||||||
type
|
|
||||||
platform {
|
platform {
|
||||||
name
|
name
|
||||||
}
|
}
|
||||||
name
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user