cognitom / momy

MongoDB to MySQL replication
https://www.npmjs.com/package/momy
MIT License
98 stars 37 forks source link

Allows sub-key like "field.subfield" #1

Closed cognitom closed 7 years ago

cognitom commented 8 years ago

For example, if the collection has fields like this:

{
  "_id": 0,
  "name": "Mike",
  "address": {
    "zip": "1550033",
    "city": "Setagaya"
  }
}

I'd like to make it possible to specify the sub-field in momyfile.json:

{
  "_id": "number",
  "name": "string",
  "address.zip": "string",
  "address.city": "string"
}
cognitom commented 7 years ago

This was already landed on c79787783673236bb9e48f7a664d3f24fb96abdd