A graphql query on datanode with argument first: N should return N entries, but it returns N entries for each type of data file.
This is due to the way peregrine resolves datanode: if there are X types of file, it sends X queries, applies the arguments X times and concatenates the X results.
Could be fixed by checking if first: N is an argument of the query and stopping the loop on file types after N iterations.
A graphql query on
datanode
with argumentfirst: N
should return N entries, but it returns N entries for each type of data file.This is due to the way
peregrine
resolvesdatanode
: if there are X types of file, it sends X queries, applies the arguments X times and concatenates the X results.Could be fixed by checking if
first: N
is an argument of the query and stopping the loop on file types after N iterations.