Skip to content

Updating Null Values #769

Answered by RobertCraigie
vibhav-zf asked this question in Q&A
Jun 13, 2023 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

Hey @vibhav-zf @royalbhati @zfundsdushyant, can you share a code sample that isn't working for you?

This should be possible by just passing None, see this test case for an example:

updated = await client.post.update(
where={
'id': post.id,
},
data={'description': None},
)
assert updated is not None
assert updated.id == post.id
assert updated.description is None

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@vibhav-zf
Comment options

Answer selected by vibhav-zf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants