Creates a query response for given channel ID and result.
Result type
ID of Mongo channel
Optional result to be wrapped into response