mongify icon indicating copy to clipboard operation
mongify copied to clipboard

Recursive :embed_on

Open kurt-turboappeal opened this issue 10 years ago • 3 comments

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

kurt-turboappeal avatar Jul 17 '15 17:07 kurt-turboappeal

Currently Mongify doesn't support multi-level embedding, it only supports one level deep embedding.

anlek avatar Jul 23 '15 16:07 anlek

Is there an alternative solution ?

davidquintard avatar Apr 13 '19 07:04 davidquintard

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 :(

anlek avatar Apr 15 '19 19:04 anlek