- search takes an entity type, a query string, and optional filters
- Filters are key-value pairs: field name and a URN or string value
- Useful filter fields: domains, tags, platform, owners, glossaryTerms
- Returns a list of matching entities with whichever fields you request
- Example: find all datasets in the Finance domain with the Certified tag:
query {
search(input: {
type: DATASET,
query: "*",
orFilters: [{
and: [
{ field: "domains", values: ["urn:li:domain:Finance"] },
{ field: "tags", values: ["urn:li:tag:Certified"] }
]
}]
}) {
total
searchResults {
entity {
... on Dataset {
properties { name }
platform { name }
ownership {
owners {
owner {
... on CorpUser { username }
}
}
}
}
}
}
}
}
Brief: Screenshot of the GraphQL Explorer at /api/graphiql with this search query typed into the left editor pane and the response JSON visible in the right results pane.