Hello,
I thought maxNumberOfItemsToReturn would only limit the # of root entitties matched when fetching a collection. However it also limited the number of returned entities for a related table, which I did not think it would do.
For example:
People
Role
PeopleRoleRel
Then I have something like:
prefetchPath.Add(PeopleEntity.PrefetchPathRoleFromPeopleRoleRel);
So then:
adapter.FetchCollection(peopleCollection, bucket, 1, prefetchPath);
This will return 1 "people" but also only 1 Role, even if the person has relations with multiple Roles.
I assumed maxNumberOfItems would only limit the count of the root entity and not the prefetch path entities. Is this the way it is supposed to behave?
Thanks.