"Troubleshooting a Query to Search for Glossary Terms"

Original Slack Thread

What is wrong with this query . Am trying to search for glossary terms
query getSearchResultsForMultiple(
input : { types: [ “GLOSSARY_TERMS”] query: “name”
} )
{
searchResults {
entity {
urn
type
}
}
}

Hey there! :wave: Make sure your message includes the following information if relevant, so we can help more effectively!

  1. Which DataHub version are you using? (e.g. 0.12.0)
  2. Please post any relevant error logs on the thread!

0.12.0

  searchAcrossEntities(input: {types: [GLOSSARY_TERM], query: "name"}) {
    searchResults {
      entity {
        urn
        type
      }
    }
  }
}```

thanks sudhakara! looks like the biggest problem was an incorrect type for GLOSSARY_TERM and needing to wrap the whole thing in query braces