diff --git a/CHANGELOG.md b/CHANGELOG.md index a246c2e7..3be6265f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,16 @@ This changelog documents the changes between release versions. +## [Unreleased] + +### Added + +- Add watch command while initializing metadata (#157) + +### Changed + +### Fixed + ## [1.7.0] - 2025-03-10 ### Added @@ -19,7 +29,7 @@ This changelog documents the changes between release versions. #### Changes to database introspection Previously running introspection would not update existing schema definitions, it would only add definitions for -newly-added collections. This release changes that behavior to make conservative changes to existing definitions: +newly-added collections. This release changes that behavior to make conservative changes to existing definitions: - added fields, either top-level or nested, will be added to existing schema definitions - types for fields that are already configured will **not** be changed automatically @@ -69,8 +79,8 @@ re-introspect, or edit schema files to change occurrences of `binData` to `uuid` Rust dependencies have been updated to get fixes for these advisories: -- https://rustsec.org/advisories/RUSTSEC-2025-0004 -- https://rustsec.org/advisories/RUSTSEC-2025-0006 +- +- ## [1.6.0] - 2025-01-17 @@ -150,7 +160,7 @@ query configuration files, and does not lock you into anything. You can run the new command like this: ```sh -$ ddn connector plugin --connector app/connector/my_connector/connector.yaml -- native-query +ddn connector plugin --connector app/connector/my_connector/connector.yaml -- native-query ``` To create a native query create a file with a `.json` extension that contains @@ -183,7 +193,7 @@ movie titles in a given year: In your supergraph directory run a command like this using the path to the pipeline file as an argument, ```sh -$ ddn connector plugin --connector app/connector/my_connector/connector.yaml -- native-query create title_word_frequency.json --collection movies +ddn connector plugin --connector app/connector/my_connector/connector.yaml -- native-query create title_word_frequency.json --collection movies ``` You should see output like this: diff --git a/connector-definition/connector-metadata.yaml b/connector-definition/connector-metadata.yaml index d3334163..02fa44d7 100644 --- a/connector-definition/connector-metadata.yaml +++ b/connector-definition/connector-metadata.yaml @@ -24,11 +24,20 @@ nativeToolchainDefinition: powershell: | $ErrorActionPreference = "Stop" & "$env:HASURA_DDN_NATIVE_CONNECTOR_PLUGIN_DIR\hasura-ndc-mongodb.exe" update + watch: + type: ShellScript + bash: | + #!/usr/bin/env bash + echo "Watch is not supported for this connector" + exit 1 + powershell: | + Write-Output "Watch is not supported for this connector" + exit 1 commands: update: hasura-ndc-mongodb update cliPlugin: name: ndc-mongodb - version: + version: dockerComposeWatch: - path: ./ target: /etc/connector