mongodb - Referencing child nodes in schema, particularly for item_lookup_field -
i have mongodb i'm referencing results looks this:
"_items": [ { ... "_id": 2014318, ... "value": { "uniqueid":2014318, "data":{...} } }, { ... "_id": 2014319, ... "value": { "uniqueid":2014319, "data":{...} } }, ... ] i'm having 2 issues, first seems eve's item resolution breaks down if _id field isn't mongoid. because can't reference collection http://.../item/2014318 i'd expect.
second can't figure out how access value['uniqueid'] manually set lookup field want use.
any thoughts or pointers appreciated.
if want change type of _id field, need change in domain dict. (i don't recommend this)
you create new field (my_id) use lookups.
there 2 ways of having non-standard lookup field (see item endpoints):
additional_lookupcreating second read-only endpoint, oritem_lookup_fielddefine field acts_id.
you have adjust item_url-setting non-objectid identifier.
hope helps.
Comments
Post a Comment