Skip to content

Conversation

xHomu
Copy link
Contributor

@xHomu xHomu commented Feb 2, 2023

Payload allows for updating doc with only partial data, but the inferred type requires the whole collection type. Closes #2009

Description

  • I have read and understand the CONTRIBUTING.md document in this repository

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • I have added tests that prove my fix is effective or that my feature works
  • Existing test suite passes locally with my changes
  • I have made corresponding changes to the documentation

Payload allows for updating doc with only partial data, but the inferred type requires the whole collection type. 
payloadcms#2009
@denolfe denolfe merged commit 4b0d4f4 into payloadcms:master Feb 6, 2023
@denolfe
Copy link
Member

denolfe commented Feb 6, 2023

Thanks for the PR @xHomu . I had to make just a small update, so it would compile.

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.

Local API Update Inferred Types should be Partial<>
2 participants