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

Schemas are not exported correctly (v.1.3.4) #277

Open
Mreddi1 opened this issue Mar 8, 2022 · 0 comments
Open

Schemas are not exported correctly (v.1.3.4) #277

Mreddi1 opened this issue Mar 8, 2022 · 0 comments

Comments

@Mreddi1
Copy link

Mreddi1 commented Mar 8, 2022

In our project we use mongodb-realm-cli tool v.1.3.4 and realm schemas are not exported correctly. mongodb-realm-cli is exported only database and collection fields without id, relationships, schema fields, how it was before. And we can not switch to the newer version mongodb-realm-cli soon. I assume that there are some changes in the Realm API.

This is export example:
schema.json
{ "database": "some-db", "collection": "some-collection" }

We use this command for export:
realm-cli export --app-id=${REALM_APP_ID} --output=realm-deploy/template-${TARGET} --as-template

And also I have just noticed we have problem with deploy command, after I run deploy command, it shows diff in which all schemas will be removed.

We use this command for deploy:
realm-cli import --app-id=${REALM_APP_ID} --path=realm-deploy/template-${TARGET} --strategy=replace

Few days ago thees commands works fine and we did not change anything..

Could you help with thees issues please?

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

1 participant