Skip to content

Creating an instance with a collection string array doesnt work #40

@FuelKubitox

Description

@FuelKubitox

I wanted to create an instance of zangodb and passed the database name and a string array with the collections, but in my code he wants then a version parameter.

I saw in your db.js file on line 55 that you only check if the second parameter is an object and not if its an string array, so you definitly need a version parameter, when you pass only a string array with the collections.

Update: But i noticed that i have to pass a version parameter anyway, because i use Typescript. But dont know if it is intended with the missing type check in your code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions