docs icon indicating copy to clipboard operation
docs copied to clipboard

Sample Command Duplication

Open ChrisTalman opened this issue 8 years ago • 2 comments

The ReQL documentation for sample does not seem to state whether or not the command can return the same document more than once in its results. This could be useful to know, as it might be desirable to return a certain number of unique elements at random. Could this please be clarified in the documentation?

ChrisTalman avatar Apr 13 '17 11:04 ChrisTalman

The first paragraph of the documentation already specifies that "selection is done without replacement".

AtnNn avatar Apr 27 '17 00:04 AtnNn

@AtnNn Thanks for your reply. I did notice that when I read the documentation, but I did not understand what it meant. I have now done a Google search, and see that it means that the same element will not be returned more than once. Unfortunately, when I was first reviewing the documentation, being unfamiliar with the terminology, it did not cross my mind to look up what that sentence meant, as it seemed unrelated. Thanks for the clarification.

ChrisTalman avatar Apr 27 '17 19:04 ChrisTalman