Listing Datasets of a Specific Platform using GraphQL and CLI

Original Slack Thread

Hey
best way to list all datasets of a specific platform?
(can be by CLI or code)

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!

using gql

              search(input: {type: DATASET, 
               query: "*", start: 0, count: 1000
                  orFilters: [
                  {
                    and: [
                    {
                          field: "platform"
                          values: ["redshift"]
                          condition: CONTAIN
                      }
                    ]
                  }
                ]
              }
              ){
                start
                count
                total
                searchResults {
                  entity {
                    urn
                    ... on Dataset {
                      urn
                      name
                      }
                    }
                  }
                }
            }```