Mongodb realm and flutter

Hello, for a project I would like to use flutter, since there are no sdk for mongodb realm I opted to use graphql api to connect to mongodb without use any sdk. Is this a good idea?
If this is not the right way is it possible to call android sdk or ios sdk natives from flutter?

Thanks.

1 Like

@Antonio you can definitely call the native side of code (ios and android) from the flutter. Basically, you use realm for android and ios natively and get back access tokens which you can use in the flutter. use this (https://pub.dev/packages/graphql_flutter) library do graphlql call.

platform integration doc link: https://flutter.dev/docs/development/platform-integration/platform-channels?tab=android-channel-kotlin-tab

Hope this helps

1 Like