Skip to content

Instantly share code, notes, and snippets.

@jamesplease
Created May 1, 2018 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesplease/fbf4f0f7bbf223592437dea8819bae4f to your computer and use it in GitHub Desktop.
Save jamesplease/fbf4f0f7bbf223592437dea8819bae4f to your computer and use it in GitHub Desktop.
// The "metadata" layer – the first layer after the resourceType or
// list name, is "skipped" in the pathing syntax, as users are not able
// to modify the store at that layer.
{
resources: {
books: {
resources: {
24: { ... },
50: { ... }
}
}
},
lists: {
favoriteBooks: {
resourceTypes: ['books', 'authors'],
resources: [{ resourceType: 'books', id: 22 }, { ... }]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment