Basically, I want to query a collection of data that could have 100 docs or 200.000 docs. Since I want to target, let's say max of 50 in a query, will this query cost me to read the total number of docs in that collection or only the docs that meet the criteria of the query?
const q = query(collection(db, 'Data'), where('clientId', '==', id));