DBContext.useQuery()method
useQuery(collection: Nullish<Collection<string, II, TT>>, query: Nullish<Query<Item<II, TT>>>): QueryStore<II, TT> | undefined
useQuery(collection: Collection<string, II, TT>, query: Query<Item<II, TT>>): QueryStore<II, TT>
Get an QueryStore for the specified collection query in the current DataProvider context and subscribe to any changes in it.