Skip to content

Commit a0d3d2f

Browse files
committed
Fix test: optional parameters should be nullable per GraphQL spec
1 parent d511036 commit a0d3d2f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/graphql/test/components/operation-types.test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,10 @@ describe("QueryType component", () => {
112112
{ skipPlaceholderQuery: true },
113113
);
114114

115+
// Optional parameters are nullable per GraphQL spec
115116
expect(sdl).toMatchInlineSnapshot(`
116117
"type Query {
117-
search(query: String!, limit: Int!): [String!]!
118+
search(query: String!, limit: Int): [String!]!
118119
}"
119120
`);
120121
});

0 commit comments

Comments
 (0)