From 6ffd52b0cabbbacb43a51610e7eb65dd18e36003 Mon Sep 17 00:00:00 2001 From: Shane Myrick Date: Thu, 16 Nov 2023 11:00:46 -0800 Subject: [PATCH] Fix compose name --- package.json | 2 +- subgraphs/flights/schema.graphql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c6ce8f0..1a89ab0 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "scripts": { "dev": "npm run dev:subgraphs & npm run dev:router", "dev:subgraphs": "NODE_ENV=dev nodemon index.js", - "dev:router": "rover dev --supergraph-config supergraph-config-dev.yaml --router-config router-config-dev.yaml --log error", + "dev:router": "rover dev --supergraph-config supergraph-config-dev.yaml --router-config router-config-dev.yaml", "start": "node index.js", "test": "npm run test:compile && npm run test:compose", "test:compose": "APOLLO_ELV2_LICENSE=accept rover supergraph compose --config supergraph-config-dev.yaml --output supergraph.graphql", diff --git a/subgraphs/flights/schema.graphql b/subgraphs/flights/schema.graphql index 7d50586..e0b2f7c 100644 --- a/subgraphs/flights/schema.graphql +++ b/subgraphs/flights/schema.graphql @@ -1,6 +1,6 @@ extend schema @link(url: "https://specs.apollo.dev/federation/v2.5", import:["@key", "@shareable", "@composeDirective"]) - @composeDirective(name: "myAPI") + @composeDirective(name: "@myAPI") directive @myAPI on FIELD_DEFINITION