Add queryPost from core-api branch