Hands-On Swift 5 Microservices Development by Ralph Kuepper
Author:Ralph Kuepper [Ralph Kuepper]
Language: eng
Format: epub
Tags: COM000000 - COMPUTERS / General, COM082000 - COMPUTERS / Bioinformatics, COM006000 - COMPUTERS / Buyer
Publisher: Packt Publishing
Published: 2020-03-02T11:36:11+00:00
return user.update(on: request.db)
"Doesn't this last line return EventLoopFuture<User> ?", you might wonder. That is correct; we are not entirely done yet. We need to map this to the correct return type.
Write down the following code, right after the last ):
.map { _ in
return UserSuccessResponse(user: UserResponse(user: user))
}
So, the whole line looks like this:
return user.update(on: request.db).map { _ in
return UserSuccessResponse(user: UserResponse(user: user))
}
And that's it: the update function is complete. Now, let's work on the delete function.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Anatomy | Animals |
Bacteriology | Biochemistry |
Bioelectricity | Bioinformatics |
Biology | Biophysics |
Biotechnology | Botany |
Ecology | Genetics |
Paleontology | Plants |
Taxonomic Classification | Zoology |
Sapiens: A Brief History of Humankind by Yuval Noah Harari(13099)
The Tidewater Tales by John Barth(12042)
Do No Harm Stories of Life, Death and Brain Surgery by Henry Marsh(6346)
Mastermind: How to Think Like Sherlock Holmes by Maria Konnikova(6264)
The Thirst by Nesbo Jo(5810)
Why We Sleep: Unlocking the Power of Sleep and Dreams by Matthew Walker(5674)
Sapiens by Yuval Noah Harari(4567)
Life 3.0: Being Human in the Age of Artificial Intelligence by Tegmark Max(4530)
The Longevity Diet by Valter Longo(4459)
The Rules Do Not Apply by Ariel Levy(3924)
The Body: A Guide for Occupants by Bill Bryson(3843)
The Immortal Life of Henrietta Lacks by Rebecca Skloot(3838)
Why We Sleep by Matthew Walker(3790)
Animal Frequency by Melissa Alvarez(3765)
Yoga Anatomy by Kaminoff Leslie(3720)
Barron's AP Biology by Goldberg M.S. Deborah T(3640)
The Hacking of the American Mind by Robert H. Lustig(3592)
All Creatures Great and Small by James Herriot(3532)
Yoga Anatomy by Leslie Kaminoff & Amy Matthews(3415)