Function syncIndexes

  • Makes the indexes in MongoDB match the indexes defined in every model's schema. This function will drop any indexes that are not defined in the model's schema except the _id index, and build any indexes that are in your schema but not in MongoDB.

    Parameters

    Returns Promise<ConnectionSyncIndexesResult>

Generated using TypeDoc