Import/export JSON schema for models

Same! Now that I’ve done quite a few projects with Dato, I’ve got a few reusable Blocks that I would love to easily import via json or any other config file.

Maybe the best way is to create a Boilerplate project and duplicate this project instead of starting from scratch?

Hey @bonjour,

Have you already looked into our migration scripts and possibly blueprint projects? Would those meet your needs?

Hey @roger !

I have yes, I think blueprint projects could be it indeed! That said, I think maybe having the option to create a template within the dashboard would be great, then in the modal “Start a new project from a template” you could select your own boilerplate template and create projects that are already bootstrapped. That would be a great QoL improvement :slight_smile:

1 Like

FYI you can do something pretty similar. If you click on a project (without entering it, so just click on its name instead of the “enter project” arrow icon), you can scroll down to the bottom of the list and Duplicate it there:

You can also make it a (Public) template if there are no security considerations.

+1 on this!

Some suggestions:

  • Button to export all schemas as JSON.
  • Button to import JSON .
  • Some UI that shows which models and blocks will be added/changed/removed, which fields will be added/changed/removed etc.
  • Basically the import should try and merge/apply the changes and not just override the existing models. Like migrations.

Use case:

We have users managing multiple projects. They don’t use the CLI. They might make multiple changes to schemas and they want to sync them across to the other projects.

1 Like

Hi @jesper @bonjour @david.desloovere @primoz.rome, hello everyone who may be interested…
I am evaluating this topic and would be grateful if you would be willing to share your thoughts in a quick one-on-one session and gather your needs, use cases and expectations.

If you are still interested, I gladly invite you to block a session from those available, or to send me a private message with your availability and I will try to find a match.

However, I will soon open a new dedicated thread both here in the community and on Slack.
I hope to hear from you soon… Thank you!

1 Like