---
title: "Discussion on \"Defining type policies during runtime in Apollo\" | Hashnode"
description: "Discussion on \"Defining type policies during runtime in Apollo\". Apollo InMemoryCache type policies are used to define field policies for local state, to customize identifier generation by type or to define a custom merge function for the cache.\nThe standard way of doing this is by defining the type policies durin..."
url: "https://hashnode.com/posts/defining-type-policies-during-runtime-in-apollo/5f9687edfbdce372c9a583c0"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Defining type policies during runtime in Apollo](https://blog.debugpai.com/defining-type-policies-during-runtime-in-apollo?utm_source=hashnode&utm_medium=feed)

Apollo InMemoryCache type policies are used to define field policies for local state, to customize identifier generation by type or to define a custom merge function for the cache. The standard way of doing this is by defining the type policies durin...

Oct 26, 2020 · 6 min read · blog.debugpai.com  
Read the article

-   [#apollo](https://hashnode.com/tag/apollo)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Deepak Pai](https://hashnode.com/@debugpai)

@debugpai · Amsterdam, The Netherlands

  
[View profile](https://hashnode.com/@debugpai)

Senior Frontend Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
