Has anyone else had issues with .hasSome not returning all records from Array? The Array is correct and the applicable records exist. I have tried with numerous sizes of array and my only conclusion is that this function has a bug.
There are more than 28,500 entries in the collection. The table is for material components and assembly references which i am developing an API to access from CAD and Excel. The issue arose when i notice blank fields for descriptions in excel…see below
First of all, you should know that by default a query returns up to 50 results.
You can rise up the limit by adding .limit(1000) to the query. 1000 entries is the maximum. If you have more then 1000 results, you’ll need to loop over them.
I don’s see why the empty description should have any effect.
@jonatandor35 the testing undertaken so far have no encroached these limits so this is not the cause. I will add this to the procedure if proved viable.
@jonatandor35 Checked all that…the items which are missing have been tested directly in an Array of 1 item. This worked with .hasSome. Therefore the error is not with the data but this the .hasSome function.