python-kit icon indicating copy to clipboard operation
python-kit copied to clipboard

ref gives inconsistent results

Open animeshmanglik opened this issue 7 years ago • 0 comments

Documents in Custom Type

Author	author	Repeatable	142 docs.	
Category category Repeatable	16 docs.	
Product	product	Repeatable	6304 docs.		
Series	series	Repeatable	7 docs.	
Source	source	Repeatable	169 docs.	

Trying to use these commands to get sources documents.

form = api.form("everything")
form.ref(api.get_master()).query("""[[any(document.type, ["source"])]]""").page_size("100")
form.submit().documents

The results are inconsistent, sometimes it spurts out only products.

When I use this command multiple times.

form.ref(api.get_master()).query("""[[any(document.type, ["source"])]]""").page_size("100")

It returns the correct result.

Not too sure whats happening.

animeshmanglik avatar May 21 '18 19:05 animeshmanglik