@@ -203,7 +203,7 @@ export class MongoStorageAdapter {
203203 . then ( schemaCollection => schemaCollection . findAndDeleteSchema ( className ) )
204204 }
205205
206- // Delete all data known to this adatper . Used for testing.
206+ // Delete all data known to this adapter . Used for testing.
207207 deleteAllClasses ( ) {
208208 return storageAdapterAllCollections ( this )
209209 . then ( collections => Promise . all ( collections . map ( collection => collection . drop ( ) ) ) ) ;
@@ -220,7 +220,7 @@ export class MongoStorageAdapter {
220220 // Pointer field names are passed for legacy reasons: the original mongo
221221 // format stored pointer field names differently in the database, and therefore
222222 // 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
224224 // fieldNames, they show up additionally in the pointerFieldNames database for use
225225 // by the mongo adapter, which deals with the legacy mongo format.
226226
@@ -265,12 +265,12 @@ export class MongoStorageAdapter {
265265 // undefined as the reason.
266266 getClass ( className ) {
267267 return this . _schemaCollection ( )
268- . then ( schemasCollection => schemasCollection . _fechOneSchemaFrom_SCHEMA ( className ) )
268+ . then ( schemasCollection => schemasCollection . _fetchOneSchemaFrom_SCHEMA ( className ) )
269269 }
270270
271271 // TODO: As yet not particularly well specified. Creates an object. Maybe shouldn't even need the schema,
272272 // 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.
274274 createObject ( className , schema , object ) {
275275 schema = convertParseSchemaToMongoSchema ( schema ) ;
276276 const mongoObject = parseObjectToMongoObjectForCreate ( className , object , schema ) ;
0 commit comments