Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: this.adapter.updateSchemaWithIndexes is not a function #1

Open
danepowell opened this issue Jul 17, 2018 · 3 comments
Open

Comments

@danepowell
Copy link

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?

@benishak
Copy link
Owner

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.

@danepowell
Copy link
Author

danepowell commented Jul 30, 2018

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: parse-community/parse-server#4240

@Sanjana97k
Copy link

Has anyone come up with a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants