In this post, we will see how to resolve Vapor 4 Per object subordinate views/templates in Leaf? Question: .nameJust getting into Vapor and I think I’ve got the basics down relatively well. But I have a design model for a ...

In this post, we will see how to resolve Creating CRUD Functions Using Async-Await with Vapor-Fluent – Swift 5.6 Question: I’m trying to understand how to create CRUD functions with Vapor. It appears first() is optional, but cannot be unwrapped ...

In this post, we will see how to resolve ShazamKit call from within Swift Vapor Server Question: When I try to match audio signature with ShazamKit, it works without a problem in my iOS app, because I was able to ...

In this post, we will see how to resolve Server side Swift – help connecting to CloudKit Web Services Question: I’m trying to connect to ck web services using Vapor. I keep getting code 401 (authentication failed). I read and ...

Question: I installed vapor via homebrew and then immediately wanted to jump into a project by executing vapor new Hello but then got the following message back in the terminal: I tried some approaches to fix this like uninstalling and ...

Question: I am building an app with a Vapor backend, and Imperial for OAuth. I am trying to implement Google and Facebook sign-in. When I hit this endpoint: localhost:8080/google , the server authenticates the user, and after that, a callback ...

Question: Given the example from the vapor docs: How can I query with fluent all planets which do not have a tag? EDIT: Solution but with async/await Answer: I haven’t checked this out but, intuitively, this should work if you ...

Question: Could someone give me example please, how to save Object to DB? For example, I am using a GET request which triggers the HTML parser and returns user a model. How I can save that model to my DB? ...

Question: I am working on a project in vapor and I would like to calculate the average of multiple columns, but I can’t figure out how to do it. I can get the average of one column like this: I ...