Writing Mongo Realm serverless functions in TypeScript

I couldn’t find any resource on writing Realm functions in TypeScript. So I decided to figure it out myself and document everything in this article. Hope it helps someone looking for a solution or at least inspiration. If you find a better approach, please let me know :+1:.


Would be nice if this was natively supported! Also would be interested to see support for other languages, like Go or Python.

1 Like

we need typescript natively supported

1 Like

Welcome to the MongoDB Community Forums @AlanDanielx_N_A !

Please upvote & watch the existing feature request to Support TypeScript in Realm Functions.

A workaround would be to transpile your TypeScript code to JavaScript per the write up @Stanislaw_Baranski shared in this discussion topic.