Query all size limit


#1

Is there a size limit for the data return from a query? for example, when I run
query { allContacts { id, name } }
at the console and download json, the download does not contain all the records in Contact table. (it contains about 1000 records only). Is there a way to query and return all records at once?


Sun amount - more than 350'000 rows
#2

Indeed, currently, only the first 1000 nodes will be returned. You can query multiple thousand nodes at once using GraphQL Aliases:

query {
  p_01: allContacts(first: 1000 skip: 0) {
    ... ContactInfo
  }
  p_02: allContacts(first: 1000 skip: 1000) {
    ... ContactInfo
  }
}

fragment ContactInfo on Contact {
  id
  address
  name
}

On the other hand, you can count the existing contacts like that:

query {
  _allContactsMeta {
    count
  }
}