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

    Function convertIdToObjectId

    • Parameters

      • id: ItemID

        ID you want to convert can be string or a valid ObjectId

      Returns ObjectId

      Fulfilled - ObjectId version of the id.

      This function converts an id to ObjectId if it's a string, if not it'll return the given input.