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

Add collection and document function #110

Merged
merged 6 commits into from
Dec 11, 2020

Conversation

michaelprichardson
Copy link
Collaborator

Added the collection and document function so that you can string together the collections and docs like so: firestore.collection('col1').document('doc1').collection('col2').document('doc2'). Went with document as the most of the SDKs use document instead of doc which is only used in js.

Deprecated

suspend fun <T> add(data: T, strategy: SerializationStrategy<T>, encodeDefaults: Boolean = true): DocumentReference

for

suspend fun <T> add(strategy: SerializationStrategy<T>, data: T, encodeDefaults: Boolean = true): DocumentReference

to match the parameters of the set methods

@michaelprichardson michaelprichardson linked an issue Dec 4, 2020 that may be closed by this pull request
@nbransby nbransby merged commit ad169bb into master Dec 11, 2020
@nbransby nbransby deleted the 103-firestore-collection-no-document-function branch December 11, 2020 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Firestore Collection Object Does not Have Document Function
2 participants