Efficient way to structure falcor router for deep paths? -


i'm continuing experiments falcor , enjoying of it, i'm noticing concerning.

i'm assembling jsongraph multiple disparate apis, falcor-router intended do. can't seem find way cleanly provide catch-all fields don't need special handling w/o blowing routes do need special handling.

my routes following:

  • items[{integers:ids}].name
  • items[{integers:ids}][{keys:fields}]

no matter order declare routes in generic 1 wins. there better way avoid full-nuclear option of structuring routes this?

  • items[{integers:ids}].name
  • items[{integers:ids}]['fooga', 'wooga', 'booga', 'tooga', ... ]

that seems brittle, if data coming backing server changes have update not application code router well. becomes real mess if have nested objects number of permutations climb in hurry.

i believe bug. router should match specific path first. appreciate if log issue. fix you.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -