docs custom query update