Query.execute is not a function

Use Query#foreach. Query#execute was marked deprecated in the v2.0 client release and has been removed in v3.0. Please refer to the full list of API changes in v3.