Skip to content

Commit

Permalink
Enable mutations v2 by default (#601)
Browse files Browse the repository at this point in the history
<!-- The PR description should answer 2 (maybe 3) important questions:
-->

### What

Generated point mutations have been an opt-in feature for a while. Now
we advertise them in the Postgres getting started docs, it's probably
time to say they are generally available. This won't affect existing
configurations (a missing value still means "no generated mutations
please".

### How

Change the default.
  • Loading branch information
danieljharvey authored Aug 30, 2024
1 parent 9c6baca commit f6e1d9c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

### Added

- Enabled point mutations by default for newly generated configuration.

### Changed

### Fixed
Expand Down
4 changes: 1 addition & 3 deletions crates/configuration/src/version5/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ impl ParsedConfiguration {
connection_settings: connection_settings::DatabaseConnectionSettings::empty(),
metadata: metadata::Metadata::default(),
introspection_options: options::IntrospectionOptions::default(),
// we'll change this to `Some(MutationsVersions::V1)` when we
// want to "release" this behaviour
mutations_version: None,
mutations_version: Some(metadata::mutations::MutationsVersion::V2),
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3123,5 +3123,5 @@ expression: default_configuration
"varchar": "string"
}
},
"mutationsVersion": null
"mutationsVersion": "v2"
}

0 comments on commit f6e1d9c

Please sign in to comment.