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(13912)
The Tidewater Tales by John Barth(12370)
Mastermind: How to Think Like Sherlock Holmes by Maria Konnikova(6892)
Do No Harm Stories of Life, Death and Brain Surgery by Henry Marsh(6658)
The Thirst by Nesbo Jo(6405)
Why We Sleep: Unlocking the Power of Sleep and Dreams by Matthew Walker(6298)
Life 3.0: Being Human in the Age of Artificial Intelligence by Tegmark Max(5143)
Sapiens by Yuval Noah Harari(5094)
The Longevity Diet by Valter Longo(4835)
The Body: A Guide for Occupants by Bill Bryson(4534)
The Rules Do Not Apply by Ariel Levy(4482)
The Immortal Life of Henrietta Lacks by Rebecca Skloot(4222)
Why We Sleep by Matthew Walker(4167)
Animal Frequency by Melissa Alvarez(4123)
Yoga Anatomy by Kaminoff Leslie(4083)
The Hacking of the American Mind by Robert H. Lustig(4050)
All Creatures Great and Small by James Herriot(3950)
Barron's AP Biology by Goldberg M.S. Deborah T(3925)
Double Down (Diary of a Wimpy Kid Book 11) by Jeff Kinney(3869)
