Skip to content

Commit

Permalink
fix(fields): fix calendarDay non-nullable input type name (#7866)
Browse files Browse the repository at this point in the history
* fix(fields): fix calendarDay non-nullable input type name

* Update .changeset/tasty-lies-move.md

Co-authored-by: Mitchell Hamilton <mitchell@hamil.town>
  • Loading branch information
2 people authored and dcousens committed Sep 15, 2022
1 parent 29f544a commit 37288b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tasty-lies-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@keystone-6/core': patch
---

Fixes nullable and non-nullable calendarDay fields existing in the same schema creating a GraphQL schema with two different types with the same name
2 changes: 1 addition & 1 deletion packages/core/src/fields/types/calendarDay/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,6 @@ const CalendarDayNullableFilter: CalendarDayFilterType = graphql.inputObject({
});

const CalendarDayFilter: CalendarDayFilterType = graphql.inputObject({
name: 'CalendarDayNullableFilter',
name: 'CalendarDayFilter',
fields: () => filterFields(CalendarDayFilter),
});

0 comments on commit 37288b1

Please sign in to comment.