Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Firestore] Add multiple response model type with Variadic parameter #23

Open
fummicc1 opened this issue Jan 1, 2022 · 0 comments
Open

Comments

@fummicc1
Copy link
Owner

fummicc1 commented Jan 1, 2022

protocol User {}
struct Me: User {}
struct Friend: User {}

let me: Me = try await client.get(ref, User.self, concreteTypes: Me.self, Friend.self)
let friend: Friend = try await client.get(ref, User.self, concreteTypes: Me.self, Friend.self)
@fummicc1 fummicc1 changed the title [Firestore] Add multiple responsed models with Variadic parameter [Firestore] Add multiple response model Type with Variadic parameter Jan 1, 2022
@fummicc1 fummicc1 changed the title [Firestore] Add multiple response model Type with Variadic parameter [Firestore] Add multiple response model type with Variadic parameter Jan 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant