Help, in vibe.d, how to get configure var of mongodb in heroku?

rikki cattermole rikki at cattermole.co.nz
Fri May 13 06:01:29 UTC 2022


On 13/05/2022 5:52 PM, MichaelBi wrote:
> struct Camera{
>      @name("_id") BsonObjectID id; // represented as "_id" in the database
>      string brand;
>      string model;
> }
> 
> the structure is mapping of database field structure. how to resolve?

That code isn't the cause of your issue (its fine, no CTFE needed).

We would need see more of your code surrounding:

         auto uri = environment.get("MONGODB_URI");
         MongoClient conn = connectMongoDB(uri);
         MongoDatabase eqpdb = conn.getDatabase("MbEqpHeroku");


More information about the Digitalmars-d-learn mailing list