Issue #85: making it even more flexible by passing the type instead of just the typeName. Interface is now query(type, query, request, callback).