parse-server-dynamodb-adapter icon indicating copy to clipboard operation
parse-server-dynamodb-adapter copied to clipboard

TypeError: this.adapter.updateSchemaWithIndexes is not a function

Open danepowell opened this issue 7 years ago • 3 comments
trafficstars

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?

danepowell avatar Jul 17 '18 01:07 danepowell

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.

benishak avatar Jul 17 '18 11:07 benishak

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

danepowell avatar Jul 30 '18 02:07 danepowell

Has anyone come up with a solution?

Sanjana97k avatar Jan 27 '20 12:01 Sanjana97k