Recursive :embed_on
Quick question: does this work in a different way than I'm expecting? I'd like it to be as such
State { County1 { City1 City2 } County2 { City1 City2 } }
I can get the Cities to embed into a County table and Counties to embed into a State table, but not inside of each other.
table "City", :embed_in => :County, :on => :countyId do column "cityId", :key column "cityName", :string column "countyId", :integer end
table "County", :embed_in => :State, :on => :stateId do column "countyId", :key column "countyName", :string column "stateId", :integer column "active", :boolean end
table "State" do column "stateId", :key column "stateName", :string column "stateCode", :string column "equalizationFactor", :decimal end
Currently Mongify doesn't support multi-level embedding, it only supports one level deep embedding.
Is there an alternative solution ?
I'm sorry to say, at the moment there is no solution. I've been thinking about how to fix this issue and have some ideas, just no time to play with them :(