You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Yesod Web Framework
A client post a person and it's persistent key as json to the Yesod server. I decode the json to a Haskell Person and it's id. Now I want to update this Person in the database. Update in persist wants a list of fields and values. There is no (?) function to update the Person without calculating all the fields and values. Any idea's
Kees
Ideal Learning
unread,
Oct 13, 2021, 3:51:53 AM10/13/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Yesod Web Framework
Hi!
I do it this way in my put handler. (Notice that cid is not used for anything). Document type needs to be defined explicitly as in :: Handler Document. Replace shall replace the record:
putDocumentR :: CompanyId-> DocumentId -> Handler Value