Skip to content

Commit bd92900

Browse files
committed
feat(country): add searchable field for country name
- Update AppDependencies class in app_dependencies.dart - Add 'name' field to searchableFields for Country model
1 parent fc1cdd7 commit bd92900

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/src/config/app_dependencies.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ class AppDependencies {
127127
modelName: 'countries',
128128
fromJson: Country.fromJson,
129129
toJson: (item) => item.toJson(),
130+
searchableFields: ['name'],
130131
logger: Logger('DataMongodb<Country>'),
131132
);
132133
final languageClient = DataMongodb<Language>(

0 commit comments

Comments
 (0)