Get the type of a key
The key to get the type of
Optional
The options to use
A promise if the driver is async, otherwise a string
const db = new GoodDB(new JSONDriver({path: './database.json'}));db.type('key'); Copy
const db = new GoodDB(new JSONDriver({path: './database.json'}));db.type('key');
const db = new GoodDB(new MongoDBDriver({uri: "..."}));await db.connect();await db.type('key'); Copy
const db = new GoodDB(new MongoDBDriver({uri: "..."}));await db.connect();await db.type('key');
Get the type of a key