Writing Mongo Realm serverless functions in TypeScript

Hello,
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:.

5 Likes

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

2 Likes

we need typescript natively supported

3 Likes

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.

Regards,
Stennie