> For the complete documentation index, see [llms.txt](https://docs.codemash.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.codemash.io/sdks-and-cli/database/schemas/get-database-schema-version-diff.md).

# Get Database Schema Version Diff

A **schema** defines a collection's fields, types, and validation. Schemas support drafts, versions, and publishing. This method returns a single database schema version diff by id.

This method is on the **Hub** surface (`norbix.hub.database`) — call it from admin tooling or IaC.

{% hint style="info" %}
These examples assume the SDK is installed and your credentials are set as environment variables — each client reads them automatically, so the constructors below take no arguments. See [Install a Norbix SDK](/sdks-and-cli/install.md).
{% endhint %}

{% tabs %}
{% tab title="JavaScript / TypeScript" %}

```ts
import { Norbix } from '@norbix.ai/ts';
const norbix = new Norbix();

const result = await norbix.hub.database.getDatabaseSchemaVersionDiff({
  id: 'sch_4kX9mQvR2tYw7ZbC1dFgHj',
  fromVersion: 10,
  toVersion: 10,
});
```

{% endtab %}

{% tab title=".NET" %}

```csharp
using Norbix.Sdk;
using Norbix.Sdk.Types.Hub;

using var client = new NorbixClient();

var result = await client.Database.GetDatabaseSchemaVersionDiffAsync(new GetDatabaseSchemaVersionDiff
{
    Id = "sch_4kX9mQvR2tYw7ZbC1dFgHj",
    FromVersion = 10,
    ToVersion = 10,
});
```

{% endtab %}

{% tab title="Python" %}

```python
from norbix_python import NorbixHub

norbix = NorbixHub()

result = norbix.database.get_database_schema_version_diff(
    id="sch_4kX9mQvR2tYw7ZbC1dFgHj",
    fromVersion=10,
    toVersion=10,
)
```

{% endtab %}

{% tab title="Go" %}

```go
c, _ := norbix.New(norbix.Options{})
ctx := context.Background()

var result map[string]any
err := c.Hub.Database.GetDatabaseSchemaVersionDiff(ctx, "sch_4kX9mQvR2tYw7ZbC1dFgHj", map[string]any{
	"fromVersion": 10,
	"toVersion": 10,
}, &result)
```

{% endtab %}

{% tab title="Dart / Flutter" %}

```dart
import 'package:norbix/norbix_hub.dart';

final hub = NorbixHub();

final result = await hub.database.getDatabaseSchemaVersionDiff(id: 'sch_4kX9mQvR2tYw7ZbC1dFgHj', body: {
  'fromVersion': 10,
  'toVersion': 10,
});
```

{% endtab %}

{% tab title="Swift" %}

```swift
import NorbixSwift

let client = Norbix()

let result = try await client.hub.database.getDatabaseSchemaVersionDiff([
    "id": "sch_4kX9mQvR2tYw7ZbC1dFgHj",
    "fromVersion": 10,
    "toVersion": 10,
])
```

{% endtab %}

{% tab title="Kotlin" %}

```kotlin
import dev.norbix.sdk.hub.NorbixHub

val hub = NorbixHub()

val result = hub.database.getDatabaseSchemaVersionDiff(mapOf(
    "id" to "sch_4kX9mQvR2tYw7ZbC1dFgHj",
    "fromVersion" to 10,
    "toVersion" to 10,
))
```

{% endtab %}

{% tab title="CLI" %}

```sh
norbix hub db schema version diff get sch_4kX9mQvR2tYw7ZbC1dFgHj --fromVersion 10 --toVersion 10
```

{% endtab %}
{% endtabs %}

## In the dashboard

Manage this visually in Norbix Cloud — see [Database → Schemas](/norbix-cloud/database/collections/schema.md).

## API reference

Full request and response for this endpoint: [Get Database Schema Version Diff](/api-reference/database/schemas/get-database-schema-version-diff.md).
