Calling asynchronous methods that create and query dynamic documents