<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/custom-scalar-i-hardly-know-her--nq6cefww3" -->

---
title: Custom scalar? I hardly know her! | daily.dev
description: Apollo Client 4.3 ships native custom scalar support, letting developers register parse/serialize logic once and use parsed types (like Date objects)...
canonical: https://daily.dev/posts/custom-scalar-i-hardly-know-her--nq6cefww3
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Custom scalar? I hardly know her! | daily.dev
og:description: Apollo Client 4.3 ships native custom scalar support, letting developers register parse/serialize logic once and use parsed types (like Date objects)...
og:url: https://daily.dev/posts/custom-scalar-i-hardly-know-her--nq6cefww3
og:image: https://api.daily.dev/og/posts/NQ6CEFww3.png
og:image:alt: Custom scalar? I hardly know her!
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Custom scalar? I hardly know her!

**[Apollo Blog](https://daily.dev/sources/apollo)** · 13 min read · 0 upvotes · 0 comments

## Summary

Apollo Client 4.3 ships native custom scalar support, letting developers register parse/serialize logic once and use parsed types (like Date objects) throughout queries, variables, and cache writes instead of manually writing field policy read functions. The release also adds a type-safe cache access pattern via a new TypeOverrides interface, improved GraphQL Codegen incremental types that remove unnecessary conditional branches once dataState is complete, and reworked internals for @defer/@stream and cache feud detection to ensure parsed scalar values are consistently returned across incremental and cached results. The minimum supported TypeScript version is now 5.9, and skipToken support was added to useSubscription.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.apollographql.com/blog/custom-scalar-i-hardly-know-her>

## Questions this post answers

### How do I add custom scalar support to Apollo Client, like parsing DateTime fields into Date objects?

Apollo Client 4.3 introduces a native Scalar class you register on InMemoryCache via the scalars option, defining parse, serialize, and is functions. Then configure a field policy with the new scalar option (e.g. scalar: "DateTime") so Apollo Client automatically parses that field into the published type, and also serializes parsed values used as query variables or input objects.

_Track library releases like Apollo Client's scalar support as you plan a GraphQL client upgrade on daily.dev._

### What is a cache feud in Apollo Client and how does 4.3 change how it's detected?

A cache feud occurs when two or more GraphQL queries compete over overlapping field data, causing one query's write to make another incomplete and refetch, potentially looping forever. Prior to Apollo Client 4.3, feud detection skipped cache writes when a new network result matched the last written data. 4.3 instead always writes to the cache and compares missing fields across broadcasts, fixing a long-standing infinite refetch bug (issue 11879).

_Developers debugging GraphQL refetch loops can follow Apollo Client internals like this on daily.dev._

### What is the minimum TypeScript version required for Apollo Client 4.3?

Apollo Client 4.3 requires TypeScript 5.9 or higher as its minimum supported version. This change was introduced alongside the release's new type-safe cache access feature (via an extendable TypeOverrides interface) and improved GraphQL Codegen incremental types that remove unnecessary conditional branches once dataState reports complete.

_Keep tabs on minimum version bumps like this before upgrading Apollo Client with daily.dev._

## Similar posts on daily.dev

- [Building a GraphQL API in Go with Custom Scalars](https://daily.dev/posts/building-a-graphql-api-in-go-with-custom-scalars-stdrogmjf) · Coins Bench · 1 upvotes · 0 comments
- [Apollo Connectors v0.4 is Generally Available](https://daily.dev/posts/apollo-connectors-v0-4-is-generally-available-ubrg7s993) · Apollo Blog · 1 upvotes · 0 comments
- [Progress on TypeScript 7](https://daily.dev/posts/progress-on-typescript-7-vw602leio) · Typescript · 328 upvotes · 11 comments
- [Angular and GraphQL: From REST to GraphQL Part 2](https://daily.dev/posts/angular-and-graphql-from-rest-to-graphql-part-2-cmcyuocit) · Telerik · 1 upvotes · 0 comments

---

Tags: [#react](https://daily.dev/tags/react), [#typescript](https://daily.dev/tags/typescript), [#graphql](https://daily.dev/tags/graphql), [#apollo](https://daily.dev/tags/apollo)

[View this post on daily.dev](https://daily.dev/posts/custom-scalar-i-hardly-know-her--nq6cefww3)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Custom scalar? I hardly know her!","url":"https://daily.dev/posts/custom-scalar-i-hardly-know-her--nq6cefww3","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/custom-scalar-i-hardly-know-her--nq6cefww3"},"datePublished":"2026-09-15T16:44:59.234Z","dateModified":"2026-09-15T16:45:22.053Z","description":"Apollo Client 4.3 ships native custom scalar support, letting developers register parse/serialize logic once and use parsed types (like Date objects)...","image":"https://media.daily.dev/image/upload/s--58gMhC4P--/f_auto/v1722860399/public/Placeholder%2012","thumbnailUrl":"https://media.daily.dev/image/upload/s--58gMhC4P--/f_auto/v1722860399/public/Placeholder%2012","isAccessibleForFree":true,"articleSection":"Apollo Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Apollo Blog","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/cb3bc4fd879a485cacd1cff99536c010","url":"https://daily.dev/sources/apollo"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/custom-scalar-i-hardly-know-her--nq6cefww3","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"react,typescript,graphql,apollo","timeRequired":"PT13M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Apollo Blog","item":"https://daily.dev/sources/apollo"},{"@type":"ListItem","position":3,"name":"Custom scalar? I hardly know her!"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/custom-scalar-i-hardly-know-her--nq6cefww3#faq","mainEntity":[{"@type":"Question","name":"How do I add custom scalar support to Apollo Client, like parsing DateTime fields into Date objects?","acceptedAnswer":{"@type":"Answer","text":"Apollo Client 4.3 introduces a native Scalar class you register on InMemoryCache via the scalars option, defining parse, serialize, and is functions. Then configure a field policy with the new scalar option (e.g. scalar: \"DateTime\") so Apollo Client automatically parses that field into the published type, and also serializes parsed values used as query variables or input objects. Track library releases like Apollo Client's scalar support as you plan a GraphQL client upgrade on daily.dev."}},{"@type":"Question","name":"What is a cache feud in Apollo Client and how does 4.3 change how it's detected?","acceptedAnswer":{"@type":"Answer","text":"A cache feud occurs when two or more GraphQL queries compete over overlapping field data, causing one query's write to make another incomplete and refetch, potentially looping forever. Prior to Apollo Client 4.3, feud detection skipped cache writes when a new network result matched the last written data. 4.3 instead always writes to the cache and compares missing fields across broadcasts, fixing a long-standing infinite refetch bug (issue 11879). Developers debugging GraphQL refetch loops can follow Apollo Client internals like this on daily.dev."}},{"@type":"Question","name":"What is the minimum TypeScript version required for Apollo Client 4.3?","acceptedAnswer":{"@type":"Answer","text":"Apollo Client 4.3 requires TypeScript 5.9 or higher as its minimum supported version. This change was introduced alongside the release's new type-safe cache access feature (via an extendable TypeOverrides interface) and improved GraphQL Codegen incremental types that remove unnecessary conditional branches once dataState reports complete. Keep tabs on minimum version bumps like this before upgrading Apollo Client with daily.dev."}}]}
```

