Attached is my Test.grf
When i join Companies with Investments in an exthashjoin, i get multiple investors for a given company like this
"company" : {
"investor" : "/financial-organization/kleiner-perkins-caufield-byers",
"permalink" : "/company/google"
},
"company" : {
"investor" : "/person/andy-bechtolsheim",
"permalink" : "/company/google"
},
"company" : {
"investor" : "/financial-organization/sequoia-capital",
"permalink" : "/company/google"
}
I want to make it look like the following using a denormalizer :
{
"company" : {
"permalink" : "/company/google",
"investor" : [ "/financial-organization/kleiner-perkins-caufield-byers",
"/person/andy-bechtolsheim",
"/financial-organization/sequoia-capital"
]
}
What am i doing wrong - please help !!
When i join Companies with Investments in an exthashjoin, i get multiple investors for a given company like this
"company" : {
"investor" : "/financial-organization/kleiner-perkins-caufield-byers",
"permalink" : "/company/google"
},
"company" : {
"investor" : "/person/andy-bechtolsheim",
"permalink" : "/company/google"
},
"company" : {
"investor" : "/financial-organization/sequoia-capital",
"permalink" : "/company/google"
}
I want to make it look like the following using a denormalizer :
{
"company" : {
"permalink" : "/company/google",
"investor" : [ "/financial-organization/kleiner-perkins-caufield-byers",
"/person/andy-bechtolsheim",
"/financial-organization/sequoia-capital"
]
}
What am i doing wrong - please help !!
-
Hi takejerax,
I have already solved your issue in your other forum topic. viewtopic.php?f=4&t=6690
Joiner and Denormalizer are not necessary, please see my example graph. Joining will be done in JSONWriter.
Kind regards,
Please sign in to leave a comment.
Comments 1