Last active
June 8, 2022 17:26
-
-
Save glommer/83b131de783bf01c91f605731fc37a0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for await (let user of User.cursor()) { | |
if ((user.name === "Glauber Costa") && (user.age >= 40)) { | |
return new Response(user.email); | |
} | |
} | |
return new Response("not found"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment