Closed Entropy-10 closed 1 month ago
Thanks for the report! I think I just fixed it in version convex-helpers@0.1.36-alpha.0
Can you try it out and confirm it behaves as you expect at runtime & with types? I cut an alpha b/c I didn't have time to verify myself
Yep that fixed the issue perfectly!
Great, I will get that into the next patch release 🎉
On Thu, May 2, 2024 at 7:45 AM Entropy @.***> wrote:
Yep that fixed the issue perfectly!
— Reply to this email directly, view it on GitHub https://github.com/get-convex/convex-helpers/issues/119#issuecomment-2090691090, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACZQW3UIMF3AT2RTNFNJ2DZAJGRJAVCNFSM6AAAAABHC5YCYGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJQGY4TCMBZGA . You are receiving this because you commented.Message ID: @.***>
When using the
partial
function with an object that has non optional and optional top level fields, any field marked as optional will only return the undefined type.example table
patch mutation
mutation on client
This returns a type error as it says personalInfo can only be set to undefined.type generated by patch mutation