How to use Mongodb with Fable?

I'm new to F # and Fable, and I'm trying to create a Mongodb collection from compiled Fable code.

How can I express this code in F # to compile with Fable?

var MongoClient = require('mongodb').MongoClient;
+4
source share
1 answer

According to some sources of some import libraries fable, fable-import-d3 and fable-import-pixi , the attribute Importallows you to use JS libraries directly. The caveat is that you map imported JS to type F #.

FEEDBACK

There seems to be no library for mongodb and fable, for example. Fable-Import-MongoDB

0
source

Source: https://habr.com/ru/post/1677712/


All Articles