Take a star query/queries and turn them into a document for storing in a doc store such as MongoDB