Will relationship `reload` be supported?

Giving an entity which has a relationship through links:

        category:[{ id: 1, 
                    name: 'name',
                    links: { tags: '/categories/1/tags' }
        }]

Which is the convention to invalidate the relationship? Ember-Data tests show:

  • An updated links value should invalidate a relationship cache
  • relationships don’t get reset if the links is the same

I did not have in mind to change the links value to invalidate the relationship, but anyway this does not work.

Shouldn’t a reload method for relationship be available?

hasMany setup with links will fetch again the URL and without link could fetch all the loaded and unloaded records

1 Like

There is one now → https://github.com/emberjs/data/pull/2297

1 Like