I have a GraphQL query that gets me datasets withi...
# advice-metadata-modeling
e
I have a GraphQL query that gets me datasets within a certain container. By default it shows a count of 20 results, but how do I increase it? Usualy with search queries I put
count
into the
searchAcrossEntities(
input: query: "*", count: 50
But I don't have an
input
here, so where do I put the
count
?
Copy code
{container(urn:"urn:li:container:a6ac6947def34653d6dc48ecb52db18e")
  {
   properties{
    name}
  editableProperties {
    description}
  entities{
    total
    start
    count
    searchResults {
      entity {
        urn
        type
        ...on Dataset{
          properties{
            name
            description
          }
        }
      }
    }
  }
}
}
šŸ“– 1
šŸ” 1
l
Hey there šŸ‘‹ I'm The DataHub Community Support bot. I'm here to help make sure the community can best support you with your request. Let's double check a few things first: āœ… There's a lot of good information on our docs site: www.datahubproject.io/docs, Have you searched there for a solution? āœ… button āœ… It's not uncommon that someone has run into your exact problem before in the community. Have you searched Slack for similar issues? āœ… button Did you find a solution to your issue? āŒ Sorry you weren't able to find a solution. I'm sending you some tips on info you can provide to help the community troubleshoot. Whenever you feel your issue is solved, please react āœ… to your original message to let us know!
a
I’m unsure here- @big-carpet-38439 do you if we support upping the count of returned records for this query?
b
Let me check the GraphQL schema. As per here: https://datahubproject.io/docs/graphql/objects#container You can provide the ContainerEntitiesInput input: https://datahubproject.io/docs/graphql/inputObjects#containerentitiesinput
Which includes a
count
field.
e
hm, but I the have entities aspect above:
Copy code
entities{
    total
    start
    count
what is doed is display in the results the total and count that exhist for this container (see screenshot below, total of 230 and count of 20). I can' t add the count there, and if I add the input like that it doesnt' work, it gives me execution error
Copy code
entities{
    total
    start
    count
    input: {count:50}
or should the input be placed somewhere else?