Skip to content

Renamed ByteType to UnsignedByteType and SignedByteType to ByteType#9103

Merged
glen-84 merged 3 commits intomainfrom
gai/rename-byte-types
Feb 10, 2026
Merged

Renamed ByteType to UnsignedByteType and SignedByteType to ByteType#9103
glen-84 merged 3 commits intomainfrom
gai/rename-byte-types

Conversation

@glen-84
Copy link
Copy Markdown
Member

@glen-84 glen-84 commented Feb 9, 2026

Summary of the changes (Less than 80 chars)

  • Renamed ByteType to UnsignedByteType and SignedByteType to ByteType.

Copilot AI review requested due to automatic review settings February 9, 2026 15:14
@github-actions github-actions Bot added 📚 documentation This issue is about working on our documentation. 🌶️ hot chocolate 🌶️ strawberry shake labels Feb 9, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates HotChocolate scalar naming so GraphQL Byte is the signed sbyte scalar, and introduces UnsignedByte for CLR byte, aligning scalar naming with the signed core numeric types.

Changes:

  • Added UnsignedByteType and rewired ByteType to use sbyte; updated scalar registries/names/resources accordingly.
  • Updated filter conventions, JSON inference, adapters test schemas, and snapshot outputs to reflect the new scalar names.
  • Updated docs and StrawberryShake codegen defaults to recognize/use UnsignedByte.

Reviewed changes

Copilot reviewed 25 out of 26 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
website/src/docs/hotchocolate/v16/migrating/migrate-from-15-to-16.md Documents the ByteType/SignedByteType rename for v16 migration guidance.
website/src/docs/hotchocolate/v16/defining-a-schema/scalars.md Updates scalar table entries for Byte/UnsignedByte.
src/StrawberryShake/CodeGeneration/src/CodeGeneration/Utilities/SchemaHelper.cs Adjusts default scalar mappings used by StrawberryShake codegen.
src/StrawberryShake/CodeGeneration/src/CodeGeneration/BuiltInScalarNames.cs Updates which scalars StrawberryShake treats as built-in.
src/HotChocolate/MongoDb/src/Data/Filters/Convention/Extensions/MongoDbFilterConventionDescriptorExtensions.cs Updates MongoDB filter runtime bindings for byte-like types.
src/HotChocolate/Data/test/Data.Filters.Tests/Types/snapshots/ComparableOperationInputTests.Create_Implicit_Operation_Normalized.graphql Snapshot updated for renamed scalar/filter input types.
src/HotChocolate/Data/test/Data.Filters.Tests/Types/snapshots/ComparableOperationInputTests.Create_Implicit_Operation.graphql Snapshot updated for renamed scalar/filter input types.
src/HotChocolate/Data/src/Data/Filters/Types/UnsignedByteOperationFilterInputType.cs Renames byte operation filter input type to UnsignedByte….
src/HotChocolate/Data/src/Data/Filters/Convention/Extensions/FilterConventionDescriptorExtensions.cs Updates default filter runtime bindings for byte-like types.
src/HotChocolate/Core/test/Types.Tests/Types/Scalars/UnsignedByteTypeTests.cs Adds test coverage for UnsignedByteType.
src/HotChocolate/Core/test/Types.Tests/Types/Scalars/SignedByteTypeTests.cs Removes tests for SignedByteType after rename.
src/HotChocolate/Core/test/Types.Tests/Types/Scalars/ByteTypeTests.cs Updates tests so ByteType now validates/coerces sbyte.
src/HotChocolate/Core/src/Types/Types/Scalars/UnsignedByteType.cs Introduces the new UnsignedByteType scalar implementation.
src/HotChocolate/Core/src/Types/Types/Scalars/SignedByteType.cs Removes the old SignedByteType scalar implementation.
src/HotChocolate/Core/src/Types/Types/Scalars/Scalars.cs Updates CLR-type-to-scalar and name-to-scalar lookups for new scalars.
src/HotChocolate/Core/src/Types/Types/Scalars/ScalarNames.cs Adds UnsignedByte scalar name constant (replacing SignedByte).
src/HotChocolate/Core/src/Types/Types/Scalars/ByteType.cs Reworks ByteType to be the signed sbyte scalar.
src/HotChocolate/Core/src/Types/Properties/TypeResources.resx Updates localized scalar descriptions for renamed scalars.
src/HotChocolate/Core/src/Types/Properties/TypeResources.Designer.cs Regenerates strongly-typed resources after resx updates.
src/HotChocolate/Core/src/Types.Json/JsonObjectTypeExtensions.cs Updates JSON inference for UnsignedByte and adds Byte (sbyte) inference.
src/HotChocolate/Adapters/test/Adapters.OpenApi.Tests/TestSchema.cs Switches CLR types in adapter test schema to match new Byte semantics.
src/HotChocolate/Adapters/test/Adapters.OpenApi.Tests/OpenApi/snapshots/OpenApiIntegrationTestBase.OpenApi_Includes_Initial_Routes_NET9_0_Fusion.json Updates OpenAPI snapshot descriptions reflecting scalar rename.
src/HotChocolate/Adapters/test/Adapters.OpenApi.Tests/OpenApi/snapshots/OpenApiIntegrationTestBase.OpenApi_Includes_Initial_Routes_NET9_0.json Updates OpenAPI snapshot descriptions reflecting scalar rename.
src/HotChocolate/Adapters/test/Adapters.OpenApi.Tests/OpenApi/snapshots/OpenApiIntegrationTestBase.OpenApi_Includes_Initial_Routes_NET10_0_Fusion.json Updates OpenAPI snapshot descriptions reflecting scalar rename.
src/HotChocolate/Adapters/test/Adapters.OpenApi.Tests/OpenApi/snapshots/OpenApiIntegrationTestBase.OpenApi_Includes_Initial_Routes_NET10_0.json Updates OpenAPI snapshot descriptions reflecting scalar rename.
src/HotChocolate/Adapters/test/Adapters.Mcp.Tests/TestSchema.cs Switches CLR types in MCP adapter test schema to match new Byte semantics.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/HotChocolate/Core/src/Types/Properties/TypeResources.resx Outdated
Comment thread src/StrawberryShake/CodeGeneration/src/CodeGeneration/BuiltInScalarNames.cs Outdated
Comment thread src/StrawberryShake/CodeGeneration/src/CodeGeneration/Utilities/SchemaHelper.cs Outdated
Comment thread src/HotChocolate/Core/src/Types/Types/Scalars/ByteType.cs Outdated
Comment thread website/src/docs/hotchocolate/v16/defining-a-schema/scalars.md Outdated
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 9, 2026

🚀 Fusion Gateway Performance Results

Simple Composite Query

Constant Load (50 VUs)

Requests/sec Error Rate
24955.85 req/s 0.00%
📊 Response Time Metrics
Min Med Max Avg P90 P95
0.09ms 1.62ms 41.72ms 1.96ms 3.67ms 4.55ms

Ramping Load (0→50→500→50 VUs)

Requests/sec Error Rate
19714.99 req/s 0.00%
📊 Response Time Metrics
Min Med Max Avg P90 P95
0.08ms 8.57ms 102.70ms 10.69ms 22.30ms 26.89ms

Executed Query

fragment User on User {
  id
  username
  name
}

fragment Review on Review {
  id
  body
}

fragment Product on Product {
  inStock
  name
  price
  shippingEstimate
  upc
  weight
}

query TestQuery {
  topProducts(first: 5) {
    ...Product
    reviews {
      ...Review
      author {
        ...User
      }
    }
  }
}

Deep Recursion Query

Constant Load (50 VUs)

Requests/sec Error Rate
24616.04 req/s 0.00%
📊 Response Time Metrics
Min Med Max Avg P90 P95
0.09ms 1.64ms 41.26ms 1.99ms 3.77ms 4.62ms

Ramping Load (0→50→500→50 VUs)

Requests/sec Error Rate
19182.56 req/s 0.00%
📊 Response Time Metrics
Min Med Max Avg P90 P95
0.09ms 8.67ms 103.51ms 10.92ms 22.85ms 27.81ms

Executed Query

fragment User on User {
  id
  username
  name
}

fragment Review on Review {
  id
  body
}

fragment Product on Product {
  inStock
  name
  price
  shippingEstimate
  upc
  weight
}

query TestQuery {
  users {
    ...User
    reviews {
      ...Review
      product {
        ...Product
        reviews {
          ...Review
          author {
            ...User
            reviews {
              ...Review
              product {
                ...Product
              }
            }
          }
        }
      }
    }
  }
  topProducts(first: 5) {
    ...Product
    reviews {
      ...Review
      author {
        ...User
        reviews {
          ...Review
          product {
            ...Product
          }
        }
      }
    }
  }
}

Variable Batching Throughput

Constant Load (50 VUs)

Requests/sec Error Rate
27588.24 req/s 0.00%
📊 Response Time Metrics
Min Med Max Avg P90 P95
0.08ms 1.46ms 36.48ms 1.77ms 3.32ms 4.09ms

Ramping Load (0→50→500→50 VUs)

Requests/sec Error Rate
21711.21 req/s 0.00%
📊 Response Time Metrics
Min Med Max Avg P90 P95
0.08ms 7.27ms 93.40ms 9.51ms 20.14ms 24.51ms

Executed Query

query TestQuery_8f7a46ce_2(
  $__fusion_1_upc: ID!
  $__fusion_2_price: Long!
  $__fusion_2_weight: Long!
) {
  productByUpc(upc: $__fusion_1_upc) {
    inStock
    shippingEstimate(weight: $__fusion_2_weight, price: $__fusion_2_price)
  }
}

Variables (5 sets batched in single request)

[
  { "__fusion_1_upc": "1", "__fusion_2_price": 899, "__fusion_2_weight": 100 },
  { "__fusion_1_upc": "2", "__fusion_2_price": 1299, "__fusion_2_weight": 1000 },
  { "__fusion_1_upc": "3", "__fusion_2_price": 15, "__fusion_2_weight": 20 },
  { "__fusion_1_upc": "4", "__fusion_2_price": 499, "__fusion_2_weight": 100 },
  { "__fusion_1_upc": "5", "__fusion_2_price": 1299, "__fusion_2_weight": 1000 }
]

No baseline data available for comparison.


Run 21830666925 • Commit 086447c • Mon, 09 Feb 2026 15:32:46 GMT

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 29 out of 30 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread website/src/docs/hotchocolate/v16/defining-a-schema/scalars.md
Comment thread website/src/docs/hotchocolate/v16/migrating/migrate-from-15-to-16.md Outdated
@github-actions
Copy link
Copy Markdown
Contributor

🚀 Fusion Gateway Performance Results

Simple Composite Query

Constant Load (50 VUs)

Requests/sec Error Rate
24958.36 req/s 0.00%
📊 Response Time Metrics
Min Med Max Avg P90 P95
0.09ms 1.63ms 41.56ms 1.96ms 3.68ms 4.54ms

Ramping Load (0→50→500→50 VUs)

Requests/sec Error Rate
19498.94 req/s 0.00%
📊 Response Time Metrics
Min Med Max Avg P90 P95
0.09ms 8.55ms 112.58ms 10.79ms 22.59ms 27.38ms

Executed Query

fragment User on User {
  id
  username
  name
}

fragment Review on Review {
  id
  body
}

fragment Product on Product {
  inStock
  name
  price
  shippingEstimate
  upc
  weight
}

query TestQuery {
  topProducts(first: 5) {
    ...Product
    reviews {
      ...Review
      author {
        ...User
      }
    }
  }
}

Deep Recursion Query

Constant Load (50 VUs)

Requests/sec Error Rate
24756.70 req/s 0.00%
📊 Response Time Metrics
Min Med Max Avg P90 P95
0.09ms 1.63ms 43.36ms 1.97ms 3.73ms 4.61ms

Ramping Load (0→50→500→50 VUs)

Requests/sec Error Rate
19086.77 req/s 0.00%
📊 Response Time Metrics
Min Med Max Avg P90 P95
0.09ms 8.76ms 104.46ms 11.02ms 23.11ms 28.03ms

Executed Query

fragment User on User {
  id
  username
  name
}

fragment Review on Review {
  id
  body
}

fragment Product on Product {
  inStock
  name
  price
  shippingEstimate
  upc
  weight
}

query TestQuery {
  users {
    ...User
    reviews {
      ...Review
      product {
        ...Product
        reviews {
          ...Review
          author {
            ...User
            reviews {
              ...Review
              product {
                ...Product
              }
            }
          }
        }
      }
    }
  }
  topProducts(first: 5) {
    ...Product
    reviews {
      ...Review
      author {
        ...User
        reviews {
          ...Review
          product {
            ...Product
          }
        }
      }
    }
  }
}

Variable Batching Throughput

Constant Load (50 VUs)

Requests/sec Error Rate
27695.79 req/s 0.00%
📊 Response Time Metrics
Min Med Max Avg P90 P95
0.08ms 1.45ms 35.72ms 1.76ms 3.31ms 4.08ms

Ramping Load (0→50→500→50 VUs)

Requests/sec Error Rate
21726.06 req/s 0.00%
📊 Response Time Metrics
Min Med Max Avg P90 P95
0.08ms 7.23ms 107.76ms 9.50ms 20.19ms 24.65ms

Executed Query

query TestQuery_8f7a46ce_2(
  $__fusion_1_upc: ID!
  $__fusion_2_price: Long!
  $__fusion_2_weight: Long!
) {
  productByUpc(upc: $__fusion_1_upc) {
    inStock
    shippingEstimate(weight: $__fusion_2_weight, price: $__fusion_2_price)
  }
}

Variables (5 sets batched in single request)

[
  { "__fusion_1_upc": "1", "__fusion_2_price": 899, "__fusion_2_weight": 100 },
  { "__fusion_1_upc": "2", "__fusion_2_price": 1299, "__fusion_2_weight": 1000 },
  { "__fusion_1_upc": "3", "__fusion_2_price": 15, "__fusion_2_weight": 20 },
  { "__fusion_1_upc": "4", "__fusion_2_price": 499, "__fusion_2_weight": 100 },
  { "__fusion_1_upc": "5", "__fusion_2_price": 1299, "__fusion_2_weight": 1000 }
]

No baseline data available for comparison.


Run 21857070869 • Commit eddbb4e • Tue, 10 Feb 2026 08:36:57 GMT

@glen-84 glen-84 merged commit 730e0e3 into main Feb 10, 2026
94 of 115 checks passed
@glen-84 glen-84 deleted the gai/rename-byte-types branch February 10, 2026 08:46
@github-actions
Copy link
Copy Markdown
Contributor

🚀 Fusion Gateway Performance Results

Simple Composite Query

Constant Load (50 VUs)

Requests/sec Error Rate
24920.79 req/s 0.00%
📊 Response Time Metrics
Min Med Max Avg P90 P95
0.09ms 1.62ms 39.64ms 1.96ms 3.68ms 4.56ms

Ramping Load (0→50→500→50 VUs)

Requests/sec Error Rate
19557.31 req/s 0.00%
📊 Response Time Metrics
Min Med Max Avg P90 P95
0.08ms 8.59ms 110.76ms 10.78ms 22.63ms 27.44ms

Executed Query

fragment User on User {
  id
  username
  name
}

fragment Review on Review {
  id
  body
}

fragment Product on Product {
  inStock
  name
  price
  shippingEstimate
  upc
  weight
}

query TestQuery {
  topProducts(first: 5) {
    ...Product
    reviews {
      ...Review
      author {
        ...User
      }
    }
  }
}

Deep Recursion Query

Constant Load (50 VUs)

Requests/sec Error Rate
24484.94 req/s 0.00%
📊 Response Time Metrics
Min Med Max Avg P90 P95
0.09ms 1.64ms 42.42ms 1.99ms 3.78ms 4.63ms

Ramping Load (0→50→500→50 VUs)

Requests/sec Error Rate
19177.22 req/s 0.00%
📊 Response Time Metrics
Min Med Max Avg P90 P95
0.09ms 8.71ms 112.37ms 10.89ms 22.77ms 27.54ms

Executed Query

fragment User on User {
  id
  username
  name
}

fragment Review on Review {
  id
  body
}

fragment Product on Product {
  inStock
  name
  price
  shippingEstimate
  upc
  weight
}

query TestQuery {
  users {
    ...User
    reviews {
      ...Review
      product {
        ...Product
        reviews {
          ...Review
          author {
            ...User
            reviews {
              ...Review
              product {
                ...Product
              }
            }
          }
        }
      }
    }
  }
  topProducts(first: 5) {
    ...Product
    reviews {
      ...Review
      author {
        ...User
        reviews {
          ...Review
          product {
            ...Product
          }
        }
      }
    }
  }
}

Variable Batching Throughput

Constant Load (50 VUs)

Requests/sec Error Rate
27754.69 req/s 0.00%
📊 Response Time Metrics
Min Med Max Avg P90 P95
0.08ms 1.45ms 33.42ms 1.76ms 3.30ms 4.06ms

Ramping Load (0→50→500→50 VUs)

Requests/sec Error Rate
21667.93 req/s 0.00%
📊 Response Time Metrics
Min Med Max Avg P90 P95
0.08ms 7.13ms 91.49ms 9.50ms 20.14ms 24.78ms

Executed Query

query TestQuery_8f7a46ce_2(
  $__fusion_1_upc: ID!
  $__fusion_2_price: Long!
  $__fusion_2_weight: Long!
) {
  productByUpc(upc: $__fusion_1_upc) {
    inStock
    shippingEstimate(weight: $__fusion_2_weight, price: $__fusion_2_price)
  }
}

Variables (5 sets batched in single request)

[
  { "__fusion_1_upc": "1", "__fusion_2_price": 899, "__fusion_2_weight": 100 },
  { "__fusion_1_upc": "2", "__fusion_2_price": 1299, "__fusion_2_weight": 1000 },
  { "__fusion_1_upc": "3", "__fusion_2_price": 15, "__fusion_2_weight": 20 },
  { "__fusion_1_upc": "4", "__fusion_2_price": 499, "__fusion_2_weight": 100 },
  { "__fusion_1_upc": "5", "__fusion_2_price": 1299, "__fusion_2_weight": 1000 }
]

No baseline data available for comparison.


Run 21857623297 • Commit d511217 • Tue, 10 Feb 2026 08:55:32 GMT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📚 documentation This issue is about working on our documentation. 🌶️ hot chocolate 🌶️ strawberry shake

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants