Fennel.Cache.Normalizer (fennel v0.0.1)

Based on passed data and operation, it constructs a list of [{ cache_key, cache_value }] that puts entities into cache, togther with a final query.

   It could look like this:

   [
     {{operation, variables}, %{data: %{"posts" => [%{ "$ref": "todo:1" }]}}
     {"todo:1", %{"__typename" => "Todo", "title" => "Write better example"}}
   ]

Link to this section Summary

Link to this section Functions

Link to this function

call(client, operation, operation_key, map)

Link to this function

merge_metadata(result, new_result)

Link to this function

normalize_entity(client, arg)