Return distinct values for studydocument fields on demand
Created by: temparus
We need all existing distinct values from the fields of studydocuments somehow in a response so that we can create usable filters.
MongoDB supports that operation. See https://docs.mongodb.com/manual/reference/method/db.collection.distinct/