Hi Team, Trying to use GraphQL for searchAcrossEn...
# troubleshoot
h
Hi Team, Trying to use GraphQL for searchAcrossEntities https://datahubproject.io/docs/graphql/queries#searchacrossentities how do we add filters( came up with this so far ) ?
Copy code
{
  searchAcrossEntities( input: {start: 0, count: 20, query: "*", types: [CONTAINER],filters:  ["subTypes","Database"]
    })
 {
    searchResults {
      entity {
        urn
        type
        }
      }
    }
 }
@better-orange-49102: Was able to modify the query to retrieve the list of Databases, but they are turning up as ID's. How do I get the names of the Databases:
Copy code
{
  searchAcrossEntities( input: {start: 0, count: 20, query: "*", types: [CONTAINER],filters: [{field:"typeNames",value:"Database"}]
    })
 {
    searchResults {
      
      entity {
        urn
        type
    
      }
    }
 }
}
b
Copy code
query test{
  searchAcrossEntities(input:{
    types:CONTAINER
    query: "*"
    filters:{
      field: "typeNames"
      value: "Database"
    }
  }){
    searchResults{
      entity{
        urn
        ... on Container{
          properties{
            name
          }
        }
      }
    }
  }
}
h
@better-orange-49102 - Thank you ! Got the details as expected!