top is only emitted in a scenario with relations if distinct is also emitted. Distinct is only emitted if you tell the query to do that, i.e. as Brian says: to set allowDuplicates to false.
If you don't want to specify a limit, you don't have to specify a high number, just specify 0.