Questions tagged [falcor]

Netflix JavaScript library for efficient data fetching.

Falcor lets you represent all your remote data sources as a single domain model via a virtual JSON graph.

http://netflix.github.io/falcor/

73 questions
172
votes
6 answers

What is the difference between Falcor and GraphQL?

GraphQL consists of a type system, query language and execution semantics, static validation, and type introspection, each outlined below. To guide you through each of these components, we've written an example designed to illustrate the…
Gajus
  • 55,791
  • 58
  • 236
  • 384
9
votes
1 answer

Falcor with java backend server

I recently started looking into the falcor library from Netflix and trying a proof of concept based on our data. I have been looking at this library with some interest and although there are tons of examples of configuring and working with routes on…
user3536652
  • 115
  • 1
  • 11
7
votes
2 answers

What is the role of falcor in a microservice architecture?

Say we have following taxi-hailing application that is composed of loosely coupled microservices: The example is taken from https://www.nginx.com/blog/introduction-to-microservices/ Each services has its own rest api and all services are combined…
Upvote
  • 65,847
  • 122
  • 353
  • 577
4
votes
2 answers

Why can't I return an object in a Falcor router response?

If I use the example in the README on netflix/falcor, this works: return {path:['greeting'], value: 'Hello World'}; But if I try to change the value to an object: return {path:['greeting'], value: {hello: 'Hello World'}}; It doesn't seem to work.…
4
votes
2 answers

How to structure falcor router to get all available IDs?

I'm experimenting with using Falcor to front the Guild Wars 2 API and want to use it to show game item details. I'm especially interested in building a router that can use multiple datasources to combine the results of different APIs. The catch is,…
Tivac
  • 2,465
  • 18
  • 21
3
votes
1 answer

I need Falcor's `call` method explained; or a good example?

Is there a good detailed explanation or usage example anywhere of Falcor's call method? I'm struggling to understand Falcor's call method. I understand the first to arguments (functionPath and args), but I'm clueless on what the last two arguments…
kevnk
  • 16,768
  • 3
  • 23
  • 26
3
votes
1 answer

In Falcor how to work with database?

I am new to falcor data fetching framework. I tried with few example when I request for something like model.get(["contacts", {0..2}, "name"]) .then(response => { this.state.list = response.json.contacts; …
Hitesh Balar
  • 171
  • 3
  • 13
3
votes
1 answer

Netflix Falcor working together with Immutable.js?

I read about immutable.js, and the performance benefits it can give you in your react applications by implementing shouldComponentUpdate() that checks if the props or state has changed. Also, I'd want to use Netflix Falcor in my application, is it…
Pavle Lekic
  • 912
  • 1
  • 12
  • 28
2
votes
1 answer

Using falcor to retrieve the value of a "node" rather than a "leaf"

For example, with the following code, I can retrieve a value for "leaf" c from a Falcor model var model = new falcor.Model({ cache: { a: { b: { c: 'hi!'}}} }) model.getValue('a.b.c').then(val => console.log(val)); However, I'm interested in how to…
2
votes
1 answer

How to present sort order-by query in Falcor?

Suppose the model is structured as { events: [ { date: '2016-06-01', name: 'Children Day' }, { date: '2016-01-01', name: 'New Year Day' }, { date: '2016-12-25', …
Morgan Cheng
  • 66,562
  • 63
  • 166
  • 223
2
votes
1 answer

How to structure a multi-parameter search in Falcor

What are the best practices in constructing search paths for Falcor queries? Here an example from a Staffing domain where a staffing coordinator is trying to staff people for project needs: A need has startDate and an endDate - both are simple…
Naresh
  • 18,757
  • 25
  • 99
  • 162
2
votes
1 answer

Falcor Router Observable

Having trouble using the Observable in my route. The router is not sending the pathValue to the client. What am I doing wrong? { route: 'starshipsById[{integers:starshipIds}][{keys:props}]', get: (pathSet) =>…
2
votes
1 answer

falcor: Subscribe to model changes?

Is it possible to subscribe to model changes, i.e. suppose I want to get('todos[0]["completed"]').subscribe(//render function) and after setValue('todos[0]["completed"]', true) model emits new data and render function is invoked with this new data?…
almeynman
  • 5,906
  • 3
  • 19
  • 29
2
votes
1 answer

React Rxjs with Falcor or Relay

I have been playing with ReactiveX for a bit and really like the approach. I have also been following Relay and Falcor for a while and understand the advantages of declarative data fetching. I have seen people integrating react, redux with falcor,…
almeynman
  • 5,906
  • 3
  • 19
  • 29
2
votes
1 answer

Is Falcor suitable for dynamic data applications?

I went through the online Falcor videos and tutorials and it sounds very interesting. I am trying to determine if this would be a good fit for our application needs. Somewhere in the presentation I heard that it is very well suited for fairly static…
user320587
  • 1,277
  • 4
  • 27
  • 52
1
2 3 4 5