@apollo/composition
Advanced tools
Comparing version 2.3.2 to 2.3.3
# CHANGELOG for `@apollo/composition` | ||
## 2.3.3 | ||
### Patch Changes | ||
- Stop generating misleading "hint" regarding value type fields for interface types that are entity interfaces (they have a `@key` defined). ([#2412](https://github.com/apollographql/federation/pull/2412)) | ||
- Updated dependencies [[`de89e504`](https://github.com/apollographql/federation/commit/de89e5044d1a2500505a9269bcec7709aa1dcdf4)]: | ||
- @apollo/query-graphs@2.3.3 | ||
- @apollo/federation-internals@2.3.3 | ||
## 2.3.2 | ||
@@ -4,0 +14,0 @@ ### Patch Changes |
import { Schema, Subgraphs, ServiceDefinition } from "@apollo/federation-internals"; | ||
import { GraphQLError } from "graphql"; | ||
import { CompositionHint } from "./hints"; | ||
export declare type CompositionResult = CompositionFailure | CompositionSuccess; | ||
export type CompositionResult = CompositionFailure | CompositionSuccess; | ||
export interface CompositionFailure { | ||
@@ -6,0 +6,0 @@ errors: GraphQLError[]; |
@@ -7,3 +7,3 @@ import { SubgraphASTNode } from "@apollo/federation-internals"; | ||
} | ||
export declare type HintCodeDefinition = { | ||
export type HintCodeDefinition = { | ||
code: string; | ||
@@ -10,0 +10,0 @@ level: { |
import { Schema, SubtypingRule, Subgraphs } from "@apollo/federation-internals"; | ||
import { GraphQLError } from "graphql"; | ||
import { CompositionHint } from "../hints"; | ||
export declare type MergeResult = MergeSuccess | MergeFailure; | ||
export declare type CompositionOptions = { | ||
export type MergeResult = MergeSuccess | MergeFailure; | ||
export type CompositionOptions = { | ||
allowedFieldTypeMergingSubtypingRules?: SubtypingRule[]; | ||
@@ -7,0 +7,0 @@ }; |
{ | ||
"name": "@apollo/composition", | ||
"version": "2.3.2", | ||
"version": "2.3.3", | ||
"description": "Apollo Federation composition utilities", | ||
@@ -30,4 +30,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@apollo/federation-internals": "2.3.2", | ||
"@apollo/query-graphs": "2.3.2" | ||
"@apollo/federation-internals": "2.3.3", | ||
"@apollo/query-graphs": "2.3.3" | ||
}, | ||
@@ -34,0 +34,0 @@ "peerDependencies": { |
@@ -315,2 +315,26 @@ import { asFed2SubgraphDocument, buildSubgraph, Subgraphs } from '@apollo/federation-internals'; | ||
test('*No* hint on field of interface _with @key_ not being in all subgraphs', () => { | ||
const subgraph1 = gql` | ||
type Query { | ||
a: Int | ||
} | ||
interface T @key(fields: "id") { | ||
id: ID! | ||
a: Int | ||
b: Int | ||
} | ||
`; | ||
const subgraph2 = gql` | ||
type T @interfaceObject @key(fields: "id") { | ||
id: ID! | ||
a: Int | ||
} | ||
`; | ||
const result = mergeDocuments(subgraph1, subgraph2); | ||
expect(result).toNotRaiseHints(); | ||
}) | ||
test('hints on field of input object value type not being in all subgraphs', () => { | ||
@@ -317,0 +341,0 @@ const subgraph1 = gql` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
803494
14892
+ Added@apollo/federation-internals@2.3.3(transitive)
+ Added@apollo/query-graphs@2.3.3(transitive)
+ Addedts-graphviz@1.8.2(transitive)
- Removed@apollo/federation-internals@2.3.2(transitive)
- Removed@apollo/query-graphs@2.3.2(transitive)
- Removed@types/uuid@8.3.4(transitive)
- Removedts-graphviz@0.16.0(transitive)
Updated@apollo/query-graphs@2.3.3