Skip to content

Commit 47a7836

Browse files
committed
Attempt to test the PR.
With this commit and without the main commit of this PR, packages/apollo-gateway/src/__tests__/gateway/reporting.test.ts fails because the trace contains RootQuery instead of Query. (So this test is actually testing something.) However, other test files seem to fail with this change and I'm not sure why.
1 parent db167ad commit 47a7836

File tree

1 file changed

+8
-3
lines changed
  • packages/apollo-gateway/src/__tests__/__fixtures__/schemas

1 file changed

+8
-3
lines changed

packages/apollo-gateway/src/__tests__/__fixtures__/schemas/accounts.ts

+8-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ export const typeDefs = gql`
66
directive @stream on FIELD
77
directive @transform(from: String!) on FIELD
88
9-
extend type Query {
9+
schema {
10+
query: RootQuery
11+
mutation: Mutation
12+
}
13+
14+
type RootQuery {
1015
user(id: ID!): User
1116
me: User
1217
}
@@ -36,7 +41,7 @@ export const typeDefs = gql`
3641
metadata: [UserMetadata]
3742
}
3843
39-
extend type Mutation {
44+
type Mutation {
4045
login(username: String!, password: String!): User
4146
}
4247
@@ -80,7 +85,7 @@ const libraryUsers: { [name: string]: string[] } = {
8085
};
8186

8287
export const resolvers: GraphQLResolverMap<any> = {
83-
Query: {
88+
RootQuery: {
8489
user(_, args) {
8590
return { id: args.id };
8691
},

0 commit comments

Comments
 (0)