Skip to content

Add test coverage: don't make id: ID non-nullable on non-indexed types.#1122

Merged
myronmarston merged 1 commit intomainfrom
myron/dont-make-all-ids-non-nullable
Apr 9, 2026
Merged

Add test coverage: don't make id: ID non-nullable on non-indexed types.#1122
myronmarston merged 1 commit intomainfrom
myron/dont-make-all-ids-non-nullable

Conversation

@myronmarston
Copy link
Copy Markdown
Collaborator

After merging #1118, I realized that there's an alternate implementation that would pass the test added in that PR but would be wrong: we could always set the id field of any object type to be non-nullable. We only want to do so on indexed types.

This adds a test confirming that id: ID is left as nullable in on a non-indexed type.

…pes.

After merging #1118, I realized that there's an alternate implementation
that would pass the test added in that PR but would be wrong: we could
always set the `id` field of any object type to be non-nullable. We only
want to do so on indexed types.

This adds a test confirming that `id: ID` is left as nullable in on a
non-indexed type.
@myronmarston myronmarston merged commit 35f5ded into main Apr 9, 2026
25 checks passed
@myronmarston myronmarston deleted the myron/dont-make-all-ids-non-nullable branch April 9, 2026 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants