Created
January 28, 2019 19:22
-
-
Save timbaev/1d1847afcebeee109daee6e45fde8e5d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension User { | |
var todos: Children<User, Todo> { | |
return self.children(\.userID) | |
} | |
var refreshTokens: Children<User, RefreshToken> { | |
return self.children(\.userID) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment