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

Updating all Arrays (tags etc) in mdx files to YAML format #128

Open
aatmanvaidya opened this issue Sep 3, 2023 · 3 comments
Open

Updating all Arrays (tags etc) in mdx files to YAML format #128

aatmanvaidya opened this issue Sep 3, 2023 · 3 comments

Comments

@aatmanvaidya
Copy link
Contributor

right now the tags in mdx files are stored as a comma seperated string. This is proving to be in-efficient in many ways.

we have to update the arrays to a YAML format (or something similar).

tags: 
    - Tag1
    - Tag2

It turns out that when you update the array to a YAML format in mdx files, Gatsby automatically starts updating the schema.
But that is taking too long on my machine (more than 45 mins). I am guessing because we have so many nodes, not sure.

@dennyabrain maybe whenever you get time, you can try this out on your machine.

@dennyabrain
Copy link
Contributor

@aatmanvaidya can you make a PR with changes so i just have to run npm run start to test this? I tried changing tags for one but it looks like having mixed types it not allowed. So i am guessing you've changed tags for all.

@aatmanvaidya
Copy link
Contributor Author

@dennyabrain even I just changed for one, and the updating schema started, but yes, my development server was already running then, so like
first I ran npm run develop
and then, I updated just one tag into YAML, and then the updating schema popped up in the terminal.

@dennyabrain
Copy link
Contributor

Gotcha. No worries then, if I change all tags then will test and post here.

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

2 participants