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

Importing data #2006

Closed
adriano-di-giovanni opened this issue Jun 8, 2016 · 2 comments
Closed

Importing data #2006

adriano-di-giovanni opened this issue Jun 8, 2016 · 2 comments

Comments

@adriano-di-giovanni
Copy link

Do you confirm we have to rename objectId to _id when we use the export function from parse dashboard to import data into our database? Do we need to do something else?

@drew-gross
Copy link
Contributor

Yes, you need to do that, and also transform createdAt, updatedAt, ACL, and transform pointers by prefixing the key with _p_ and changing the value to the target classname + "$" + target objectId. I recommend you import to a test DB first and make sure the imported data behaves as expected.

@drew-gross drew-gross changed the title _id to objectId Importing data Jun 8, 2016
@davimacedo
Copy link
Member

I suggest you import through cloud code instead of inserting directly in the mongo collection. You can see an example here:
https://gist.github.com/davimacedo/c7738203a2a616b48a22fdc7c00b37d2

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