• Parameters

    • collectionId: string

      The ID of the collection to manage.

    • OptionalsuppressAuth: boolean

      Set to false by default you can set to true if you want to bypass the permissions and run it as Admin.

    Returns Promise<Collection>

    Fulfilled - Native MongoDB Collection Cursor.

    Use native MongoDB syntax and perform any action you want inside a collection. This API can be very useful when you need something that doesn't exist in weiv-data library. You don't need to manage clients, permissions etc. instead you will only write the actions you want to take.

    Anything done with native collection cursor won't trigger any hooks. Handle hooks manually by handling them inside your code.