Netflix/falcor

subset of path/router

rajexcited opened this issue · 1 comments

Can you allow request path to have subset ?

example,
server is defining route:
route: "book[{keys:title}]"

on client side,
when book is available, I need to find pages by chapter or by page number or by sub topics.
the current falcor version for the above route is not capable enough to give me these details even though its jsonGraph has everything.

  1. getModel("book['gameOfThrones']")
  2. getModel("book[['gameOfThrones']['chapter-1','chapter-5']")
  3. getModel("book[['gameOfThrones']['page-23 to 30']")

@rajexcited
you can define the following routes on server to capture those paths:

route: 'book[{keys:title}]'
route: 'book[{keys:title}].chapters[{integers:chapterNumbers}]'
route: 'book[{keys:title}].pages[{integers:pageNumbers}]'

and return relevant parts of your jSONGraph from these routes.
Does that solve your issue?