---
title: "github.com/maticzav/swift-graphql 5.0.0 Breaking Changes"
description: "What each github.com/maticzav/swift-graphql release removed, renamed or changed: 11 breaking changes in 6 versions on Swift Package Index, each with its source."
canonical_url: https://since.dev/packages/swift/github.com/maticzav/swift-graphql
last_updated: 2026-12-04
---

# github.com/maticzav/swift-graphql breaking changes

github.com/maticzav/swift-graphql 5.0.0 (May 2, 2023) is its newest release with breaking changes, 2 of them. The first: Signature changed DecodedOperationResult. Every breaking API change we have recorded in github.com/maticzav/swift-graphql on Swift Package Index: 11 breaking changes in 6 versions. Below, its 6 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `5.1.3`, released May 6, 2024. [Source repository](https://github.com/maticzav/swift-graphql)

- From [4.0.0](#v-4-0-0) to [5.0.0](#v-5-0-0): 2 breaking changes in 1 version.
- From [2.0.0](#v-2-0-0) to [5.0.0](#v-5-0-0): 4 breaking changes in 3 versions.

## github.com/maticzav/swift-graphql 5.0.0 breaking changes

github.com/maticzav/swift-graphql 5.0.0, released May 2, 2023: 2 breaking changes.

- **Signature changed** `DecodedOperationResult`  

DecodedOperationResult now has an optional error field instead of an array of errors. Code that reads the array must be updated to use the single optional error. [github.com](https://github.com/maticzav/swift-graphql/releases/tag/5.0.0)
- **Signature changed** `OperationResult`  

OperationResult now has an optional error field instead of an array of errors. Code that reads the array must be updated to use the single optional error. [github.com](https://github.com/maticzav/swift-graphql/releases/tag/5.0.0)

## github.com/maticzav/swift-graphql 4.0.0 breaking changes

github.com/maticzav/swift-graphql 4.0.0: 1 breaking change.

- **Behavior changed**  

Decoding failures in query-builder decoding extensions no longer appear as a parsing error in the result. The error is thrown and passed down the publisher chain, so code that reads the parsing error from the result must handle the thrown... [github.com](https://github.com/maticzav/swift-graphql/releases/tag/4.0.0)

## github.com/maticzav/swift-graphql 3.0.0 breaking changes

github.com/maticzav/swift-graphql 3.0.0: 1 breaking change.

- **Behavior changed**  

This breaking release changes how queries are built and introduces a new client. Code that relies on the previous query building behavior may need to be updated. [github.com](https://github.com/maticzav/swift-graphql/releases/tag/3.0.0)

## github.com/maticzav/swift-graphql 2.0.0 breaking changes

github.com/maticzav/swift-graphql 2.0.0: 5 breaking changes.

- **Removed** `Options`  

SwiftGraphQLCodegen no longer accepts an Options structure. Forward scalars instead. [github.com](https://github.com/maticzav/swift-graphql/releases/tag/2.0.0)
- **Removed** `SG`  

The SG namespace was removed. Use modules instead. [github.com](https://github.com/maticzav/swift-graphql/releases/tag/2.0.0)
- **Removed** `SwiftGraphQL`  

The SwiftGraphQL namespace was removed. Use modules instead. [github.com](https://github.com/maticzav/swift-graphql/releases/tag/2.0.0)
- **Behavior changed** `SwiftGraphQLCodegen`  

SwiftGraphQLCodegen no longer writes output to a file. Use the swift-graphql CLI tool instead of a build-phase script. [github.com](https://github.com/maticzav/swift-graphql/releases/tag/2.0.0)
- **Signature changed**  

Field decoding in a selection might throw, so every assignment must be marked with try. [github.com](https://github.com/maticzav/swift-graphql/releases/tag/2.0.0)

## github.com/maticzav/swift-graphql 2.0.0-beta.5 breaking changes

github.com/maticzav/swift-graphql 2.0.0-beta.5: 1 breaking change.

- **Behavior changed** `nullable`  

Nullable fields return a mock value by default instead of null. Code that expects null must be updated. [github.com](https://github.com/maticzav/swift-graphql/releases/tag/2.0.0-beta.5)

## github.com/maticzav/swift-graphql 2.0.0-beta.1 breaking changes

github.com/maticzav/swift-graphql 2.0.0-beta.1: 1 breaking change.

- **Signature changed**  

Field accessors may now fail with a bad payload error instead of a fatal error. Code reading fields must handle the thrown error. [github.com](https://github.com/maticzav/swift-graphql/releases/tag/2.0.0-beta.1)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
