per the v0.4 docs at https://www.apollographql.com/docs/graphos/connectors/mapping/virtual-connectors Virtual connector should compose successfully. However testing it yields unfavourable results. Is there a trick to getting this to work
schema.graphql
extend schema
@link(url: “https://specs.apollo.dev/federation/v2.14”)
@link(url: “Apollo Connectors Directives - Apollo GraphQL Docs”, import: [“@source”, “@connect”])
type Query {
greeting(name: String!): String!
@connect(
selection: “”"
[“Hello”, $args.name]->joinNotNull(" “)
“””
)
}
supergraph.yaml
federation_version: =2.14.0
subgraphs:
test:
routing_url: http://hello
schema:
file: schema.graphql
Command:
rover supergraph compose --config ./supergraph.yaml
Rover version:
Rover version: 0.40.0
Error:
INVALID_SELECTION: [test] @connect(selection:) on Query.greeting is not valid: nom::error::ErrorKind::Eof
GRAPH_QL_ERROR: [test] @connect on Query.greeting must have a http argument.