Skip to content

Shorthand syntax in router config not supported #2738

@UpcraftLP

Description

@UpcraftLP

Description

As per the router docs, config values can be specified in a shorthand syntax like so:

connectors:
  sources:
    subgraph1.endpoint1:
      # These configurations apply to Connectors with the "endpoint1" source in the "subgraph1" subgraph
      $config:
        my.config.value: true
    subgraph1.endpoint2:
      # These configurations apply to Connectors with the "endpoint2" source in the "subgraph1" subgraph
      $config:
        another.config.value: true # Applies to the "v2" source

This works fine with apollo router, but does not seem to work with rover dev.
Instead, rover only accepts those values if they are specified in long form:

connectors:
  sources:
    subgraph1.endpoint1: # strangely doing shorthand *here* is fine?
      $config:
        my:
          config:
            value: true
    subgraph1.endpoint2:
      $config:
        another:
          config:
            value: true

otherwise they are just empty in the request.

Environment

Rover Info:
Version: 0.36.0
Install Location: %HOMEPATH%\.rover\bin\rover.exe
OS: Windows 10.0.26100 (Windows 11 Enterprise) [64-bit]
Shell: Powershell 7.5.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐞triageissues and PRs that need to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions