@@ -15,7 +15,6 @@ export interface ScalarMapping {
1515
1616/**
1717 * Mapping table for TypeSpec standard library scalars to GraphQL custom scalars.
18- * Based on design doc: https://github.com/microsoft/typespec/issues/4933
1918 */
2019const SCALAR_MAPPINGS : Record < string , Record < string , ScalarMapping > > = {
2120 // int64 → BigInt (String)
@@ -48,7 +47,7 @@ const SCALAR_MAPPINGS: Record<string, Record<string, ScalarMapping>> = {
4847 } ,
4948 } ,
5049
51- // bytes with different encodings
50+ // bytes — requires @encode to determine format; without encoding, no GraphQL mapping applies
5251 bytes : {
5352 base64 : {
5453 graphqlName : "Bytes" ,
@@ -62,7 +61,7 @@ const SCALAR_MAPPINGS: Record<string, Record<string, ScalarMapping>> = {
6261 } ,
6362 } ,
6463
65- // utcDateTime with different encodings
64+ // utcDateTime — requires @encode to determine wire format; no default mapping without encoding
6665 utcDateTime : {
6766 rfc3339 : {
6867 graphqlName : "UTCDateTime" ,
@@ -80,7 +79,7 @@ const SCALAR_MAPPINGS: Record<string, Record<string, ScalarMapping>> = {
8079 } ,
8180 } ,
8281
83- // offsetDateTime with different encodings
82+ // offsetDateTime — requires @encode to determine wire format; no default mapping without encoding
8483 offsetDateTime : {
8584 rfc3339 : {
8685 graphqlName : "OffsetDateTime" ,
@@ -106,7 +105,7 @@ const SCALAR_MAPPINGS: Record<string, Record<string, ScalarMapping>> = {
106105 } ,
107106 } ,
108107
109- // duration with different encodings
108+ // duration — requires @encode to determine wire format; no default mapping without encoding
110109 duration : {
111110 ISO8601 : {
112111 graphqlName : "Duration" ,
0 commit comments