How to structure falcor router to get all available IDs? -


i'm experimenting using falcor front guild wars 2 api , want use show game item details. i'm interested in building router can use multiple datasources combine results of different apis.

the catch is, item ids in guild wars 2 aren't contiguous. here's example:

[     1,     2,     6,     11,     24,     56,     ... ] 

so can't write paths on client items[100..120].name because there's going bunch of holes in list.

i've tried adding route router can request items, sends infinite loop on client. can see attempt on github.

any pointers on correct way structure this? think more maybe want item.id instead?

you shouldn't find self asking ids falcor json graph object.

it seems want build array of game ids:

{     games: [         { $type: "ref", value: ["gamesbyid", 352] },         { $type: "ref", value: ["gamesbyid", 428] }         // ...     ],     gamesbyid: {         352: {             gameprop1: ...,         },         428: {             gameprop2: ...         }     } }  [games, {from: 5, to: 17 }, "gameprop1"] 

does work?


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

mysql - FireDac error 314 - but DLLs are in program directory -