You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although this plugin doesn't natively support C# we can still use this plugin in Godot projects if you really want to.
The best approach would be to use the Official C# mongodb package
using Godot;using System;publicclassMain:Control{publicoverridevoid_Ready(){GDScriptMongoDriver=(GDScript) GD.Load("res://addons/mongo-driver-godot/wrapper/mongo_driver.gd");// Need to manually type-cast to Godot.Object each time
Godot.Object driver=(Godot.Object) MongoDriver.New();
Godot.Object conn=(Godot.Object) driver.Call("connect_to_server","mongodb://localhost:27017");
Godot.Object db=(Godot.Object) conn.Call("get_database","test");
Godot.Object col=(Godot.Object) db.Call("get_collection","products");
GD.Print(col.Call("find"));}}
The text was updated successfully, but these errors were encountered:
Although this plugin doesn't natively support C# we can still use this plugin in Godot projects if you really want to.
The best approach would be to use the Official C# mongodb package
The text was updated successfully, but these errors were encountered: