fauna-gql-upload icon indicating copy to clipboard operation
fauna-gql-upload copied to clipboard

Feature: Sync domain data

Open daniel-hritcu opened this issue 2 years ago • 1 comments

It would be cool to be able to download, not just upload domain data to faunadb.

As I am using this tool in a team environment. it would be cool to be able to generate some data for a feature using the ui of the app, and then use fauna-gql-upload to dump the db from fauna to the domain data format this tool uses.

I'm open to make a PR for it sometime in the next 1-2 weeks.

daniel-hritcu avatar Jun 19 '22 05:06 daniel-hritcu

Hey,

This is a cool idea. I would really appreciate if you had the time to implement this.

However, you should know that I'm planning to change the structure of the domain data to make it more similar to a FaunaDB document. I believe this would make the implementation of this feature easier, since it would just have to pull down the documents without much modification, including both ref and ts fields.

The new structure would have to be released in a new major version, though.

So, to avoid extra work, it might be better to first change the structure of the domain data and then implement this feature. So, my question to you is: Would you be willing to also change the structure of the domain data while implementing this feature?

I would, of course, be available to answer any questions. I'm also in the process of creating an issue containing details regarding the new domain data structure.

Plazide avatar Jun 19 '22 11:06 Plazide