parse-server-dynamodb-adapter
parse-server-dynamodb-adapter copied to clipboard
TypeError: this.adapter.updateSchemaWithIndexes is not a function
I am using Parse Server 2.8.2. I was previously using a standard Mongo database and am trying to switch to DynamoDB.
I set up my DynamoDB table and server according to the readme file:
var dynamoAccessKeyId = process.env.DYNAMO_ACCESS_KEY_ID || '';
var dynamoSecretAccessKey = process.env.DYNAMO_SECRET_ACCESS_KEY || '';
var DynamoDB = require('parse-server-dynamodb-adapter').DynamoDB;
var dynamo = new DynamoDB('parse-server', {
apiVersion: '2012-08-10',
region : 'us-east-1',
accessKeyId: dynamoAccessKeyId,
secretAccessKey: dynamoSecretAccessKey
});
However, when I start my server, it crashes with this error:
TypeError: this.adapter.updateSchemaWithIndexes is not a function
See full log here: https://pastebin.com/izc7YN6E
Any idea what's going on here?
Hi @danepowell
I will try to fix this issue very soon, parse-server has added new methods including updateSchemaWithIndexes which is not implemented on this adapter
If you use any version of Parse Server 2.4.x, then it should work.
I was just looking to see if I could help but I think this is beyond my skill level.
For future reference, it looks like the updateSchemaWithIndexes method was added here, in Parse Server 2.7.0: https://github.com/parse-community/parse-server/pull/4240
Has anyone come up with a solution?