yc middleware query