这是indexloc提供的服务,不要输入任何密码
Skip to content

Add watch command while initializing metadata #157

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
- <https://rustsec.org/advisories/RUSTSEC-2025-0004>
- <https://rustsec.org/advisories/RUSTSEC-2025-0006>

## [1.6.0] - 2025-01-17

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
11 changes: 10 additions & 1 deletion connector-definition/connector-metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down