Skip to content

Commit 593044b

Browse files
committed
Update readme
1 parent 3aac20e commit 593044b

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,14 +192,18 @@ Where an `update` method exists, an `updateFields` method will also be available
192192

193193
```kotlin
194194
documentRef.updateFields {
195+
// Root level encode settings
196+
encodeDefaults = false
197+
serializersModule = module
198+
195199
"field" to "value"
196200
// Set the value of otherField to "1" using a custom Serializer
197201
"otherField".to(IntAsStringSerializer(), 1)
198202

199203
// Overwrite build settings. All fields added within this block will have these build settings applied
200204
withEncodeSettings {
201205
encodeDefaults = true
202-
serializersModule = module
206+
serializersModule = otherModule
203207
"city" to abstractCity
204208
}
205209
}
@@ -209,6 +213,10 @@ Similarly, the `Query` methods `startAt`/`startAfter`/`endAt`/`endBefore` have a
209213

210214
```kotlin
211215
query.orderBy("field", "otherField", "city").startAtFieldValues { // similar syntax for startAfter/endAt/endBefore
216+
// Root level encode settings
217+
encodeDefaults = false
218+
serializersModule = module
219+
212220
add("Value")
213221

214222
// Starts at "1" for the otherField value
@@ -217,7 +225,7 @@ query.orderBy("field", "otherField", "city").startAtFieldValues { // similar syn
217225
// Overwrite build settings. All field values added within this block will have these build settings applied
218226
withEncodeSettings {
219227
encodeDefaults = true
220-
serializersModule = module
228+
serializersModule = otherModule
221229
add(abstractCity)
222230
}
223231
}

0 commit comments

Comments
 (0)