Skip to content

Commit a1b9aa0

Browse files
committed
docs(data_mongodb): add reference link for 'language' field conflict
- Include a link to MongoDB community forum discussion about the 'language' field conflict - Improve documentation by providing a reference for the field renaming workaround
1 parent 45993f2 commit a1b9aa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/data_mongodb.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class DataMongodb<T> implements DataClient<T> {
9090
/// conflicts with a reserved keyword in MongoDB's `text` search options.
9191
/// To prevent this, it transparently renames any 'language' field to
9292
/// 'modelLanguage' before the document is written.
93-
///
93+
///
9494
/// https://www.mongodb.com/community/forums/t/just-to-point-out-do-not-name-a-field-language-if-you-are-planning-to-create-an-index/263793
9595
Map<String, dynamic> _transformMapForDb(Map<String, dynamic> map) {
9696
if (map.containsKey('language')) {

0 commit comments

Comments
 (0)