WeivData API Reference | ExWeiv Apps
    Preparing search index...

    Type Alias ItemID

    ItemID: string | ObjectId

    In WeivData you can pass two different type of item ids.

    1. If you pass string version of an ObjectId, WeivData will convert it to ObjectId.
    2. If you pass an ObjectId WeivData will use that ObjectId directly.

    But we always return string ids so you don't need to convert ObjectIds into string.

    ObjectId is the default _id type in MongoDB collections.