Is there a query that would return the entire sche...
# troubleshoot
b
Is there a query that would return the entire schema of the GraphQL API? Or one that would return all entities in DataHub? Perhaps one that would return all entities for a given Domain?
I've found the various
list<...>
queries in the API reference
Still curious if there is a query that would return the GraphQL schema
b
hey Michael! if you're hoping to get a better understanding of the GraphQL schema to see what's possible with it right now, I would suggest using the tool GraphiQL - you can go to
localhost:8080/api/graphiql
and on the right side Documentation Explorer you can see all possible queries and mutations and walk through them if you'd like
then you can try out different queries and mutations on the left
To get all entities you can always use the
searchAcrossEntities
query and pass in
*
as the query. You can do this through graphql api or in the UI through the search bar
p
Hi @bulky-soccer-26729 Do you know if searchAcrossEntities returns ghost nodes as well? I just tried it out on our end and they aren't in the result set
The query I used was:
Copy code
{
  searchAcrossEntities(input: {query: "discord-data-bqexec8-prd", count: 1000}) {
    total
    searchResults {
      entity {
        urn
        type
        ... on Dataset {
          name
        }
      }
    }
  }
}
Note the query is the project that the ghost nodes are in
b
unfortunately I don't believe this will return ghost nodes explicitly in this query. In order for us to return anything in a query we'll need more information about that entity actually existing (instead of just being referenced from something else)