0

I created json schema for MongoDB. It's look like:

{
      "schemaType": "Collection",
      "name": "Manufacturier",
      "defaultValue": "",
      "description": "...",
      "fields": [
        {
          "schemaType": "Field",
          "name": "_id",
          "type": "ObjectId",
          "required": true,
          "unique": true,
          "defaultValue": "",
          "description": "...",
          "index": 0,
          "customProps": []
        }
      ]
    }
...

Can I import this schema into mongodb? And how (if it's possible)

Alex Blex
  • 34,704
  • 7
  • 48
  • 75
kepich
  • 98
  • 1
  • 1
  • 8

1 Answers1

0

This is one of the biggest advantage of mongoDB that you can insert documents without the need to define the schema in advance , afcourse there is option to add schema validation rules as commented by @Alex Blex , but this is limiting the main reason you would like to use noSQL mongoDB database instead of other possible data storage system ...

R2D2
  • 9,410
  • 2
  • 12
  • 28