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_lookup creating second read-only endpoint, or
  • item_lookup_field define field acts _id.

you have adjust item_url-setting non-objectid identifier.

hope helps.


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -