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

split metadata into multiple files #3545

Closed
shahidhk opened this issue Dec 16, 2019 · 2 comments
Closed

split metadata into multiple files #3545

shahidhk opened this issue Dec 16, 2019 · 2 comments
Labels
c/cli Related to CLI

Comments

@shahidhk
Copy link
Member

If there is a key named metadata_dir in config.yaml, we should read all the files in that directory and merge them to construct the Hasura Metadata object to be sent in replace_metadata query to server.

This should be used in the metadata apply command.

The motivation is to let the user split the metadata files however they seem fit and the CLI will take care of merging them to a single object.

We can probably use https://github.com/imdario/mergo

@shahidhk shahidhk added the c/cli Related to CLI label Dec 16, 2019
@arvi3411301
Copy link
Member

@shahidhk Can we close this?

@marionschleifer
Copy link
Contributor

This feature has been implemented in 1.2beta. Closing this issue.

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

No branches or pull requests

3 participants