-
Notifications
You must be signed in to change notification settings - Fork 206
Multiple categories for a post? #77
Comments
This requires a lot of changes in tens of different files. I've been trying to do this for a couple of hours now and I'm currently stuck at an error that I'm unable to debug. Did you get any further with this? |
Ok, looks like I got it now. Here is a commit in my fork: baobabKoodaa/blog@adeebb7 |
Are you sure just changing the graphql queries won't solve this? I was tinkering with the queries, yet to reach a conclusion! |
Yes I'm sure. In addition to changing the GraphQL queries you also need to change the JS where you mangle the result of the query. We used to just get a String, now we get an array of Strings, so we need to handle it differently. |
If you still need multi category support check out my fork |
Currently, if I add multiple categories for a post like this, let's say
title: test
author: testAuthor
category: ["t1", "t2"]
cover: someImage.png
I get a blank page and graphql query related error on the console. Any way around this?
The text was updated successfully, but these errors were encountered: