@@ -203,7 +203,7 @@ export class MongoStorageAdapter {
203
203
. then ( schemaCollection => schemaCollection . findAndDeleteSchema ( className ) )
204
204
}
205
205
206
- // Delete all data known to this adatper . Used for testing.
206
+ // Delete all data known to this adapter . Used for testing.
207
207
deleteAllClasses ( ) {
208
208
return storageAdapterAllCollections ( this )
209
209
. then ( collections => Promise . all ( collections . map ( collection => collection . drop ( ) ) ) ) ;
@@ -220,7 +220,7 @@ export class MongoStorageAdapter {
220
220
// Pointer field names are passed for legacy reasons: the original mongo
221
221
// format stored pointer field names differently in the database, and therefore
222
222
// needed to know the type of the field before it could delete it. Future database
223
- // adatpers should ignore the pointerFieldNames argument. All the field names are in
223
+ // adapters should ignore the pointerFieldNames argument. All the field names are in
224
224
// fieldNames, they show up additionally in the pointerFieldNames database for use
225
225
// by the mongo adapter, which deals with the legacy mongo format.
226
226
@@ -265,12 +265,12 @@ export class MongoStorageAdapter {
265
265
// undefined as the reason.
266
266
getClass ( className ) {
267
267
return this . _schemaCollection ( )
268
- . then ( schemasCollection => schemasCollection . _fechOneSchemaFrom_SCHEMA ( className ) )
268
+ . then ( schemasCollection => schemasCollection . _fetchOneSchemaFrom_SCHEMA ( className ) )
269
269
}
270
270
271
271
// TODO: As yet not particularly well specified. Creates an object. Maybe shouldn't even need the schema,
272
272
// and should infer from the type. Or maybe does need the schema for validations. Or maybe needs
273
- // the schem only for the legacy mongo format. We'll figure that out later.
273
+ // the schema only for the legacy mongo format. We'll figure that out later.
274
274
createObject ( className , schema , object ) {
275
275
schema = convertParseSchemaToMongoSchema ( schema ) ;
276
276
const mongoObject = parseObjectToMongoObjectForCreate ( className , object , schema ) ;
0 commit comments