```js
const subscription = DataStore.observeQuery(
  Post,
  p => p.and(p => [
    p.title.beginsWith("post"),
    p.rating.gt(10)
  ]), {
    sort: s => s.rating(SortDirection.ASCENDING)
  }
).subscribe(snapshot => {
  const { items, isSynced } = snapshot;
  console.log(`[Snapshot] item count: ${items.length}, isSynced: ${isSynced}`);
});
```

<Callout>

The default configuration for `observeQuery` has a default `syncPageSize` of 1,000 and a default `maxRecordsToSync` of 10,000. These values can be customized by configuring their values manually in `DataStore.configure`.

</Callout>
