This is as @marcellothearcane suggests you’ll need add ‘genre’ document link in the ‘audiotrack’ document in your Prismic repo.
Then you can export an example of this document to see what the link should look like in the import then follow that structure for the rest of the import files.
I think all you need is the document ID, but the best way to check is with the test export.
What is your exact use case here, what are you trying to build?
Is there an easy way to get the JAZZ_GENRE_ID(see code above) from Prismic. Also, a track can have multiple genres.
I have an idea about how to do this but I would like to know if there is an easy way to do this or if anyone has done this before, to provide some tips?
I will be migrating over 6000 entries from Contentful CMS and importing them into Prismic so I need to get this right the first time.
I plan to do a test with just one track and see what happens so just looking for guidance.
I'm really sorry that we never got back to you on this, this got lost in the backlog. We've recently implemented a new thread tracking process so this doesn't happen again and this is how we've come across this again.
I know it's very late, but you would be able to find the id of the doc JAZZ GENRE document by using the API Browser:
You will then need to run a script on your side to match the Jazz Genres to the Jazz Genre ID from the response and replace these in your JSON files. Unfortunately I don't have any examples of what this might look like.
Sorry again if this is all too late.
Thanks.
Phil
(Phil Snow)
closed , flag & select 'Something Else' to reopen.
9
This issue has been closed due to inactivity. Flag to reopen.