...

Text file src/github.com/golang-migrate/migrate/v4/database/mongodb/examples/migrations/002_create_indexes.up.json

Documentation: github.com/golang-migrate/migrate/v4/database/mongodb/examples/migrations

     1[{
     2  "createIndexes": "mycollection",
     3  "indexes": [
     4    {
     5      "key": {
     6        "username": 1,
     7        "created": -1
     8      },
     9      "name": "username_sort_by_asc_created",
    10      "background": true
    11    },
    12    {
    13      "key": {
    14        "email": 1
    15      },
    16      "name": "unique_email",
    17      "unique": true,
    18      "background": true
    19    }
    20  ]
    21}]

View as plain text