Replies: 5 comments 3 replies
-
Made some progress by referencing this thread. Updating my content.config.ts with the below meant that the values are not in the meta but at the top level, allowing them to be accessed in the query
|
Beta Was this translation helpful? Give feedback.
-
I'm also trying to use my custom slug instead of the file name, to avoid breaking things when refactoring.
However querying by meta.slug does not work. Would appreaciate any tips, stuck here because I don't want to break all backlinks |
Beta Was this translation helpful? Give feedback.
-
I'm struggling with the same question - I can't access nested values. Is it a requirement to have a flat structure in v3? |
Beta Was this translation helpful? Give feedback.
-
Same issue here, also documentation does not help. |
Beta Was this translation helpful? Give feedback.
-
@Chippd where did you find I am also working on nested content. Thanks to you and this Edit: Or is it SQL syntax? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm upgrading my app to v3, and so migrating from queryContent to queryCollection, but struggling to see how I filter/sort by nested values on my the documents.
In v2, I could do the following
Note the where() and sort()
Since upgrading to v3, I've changed my query to:
Which brings in an object like so:
My problem is the commented out lines - they do not work. I need to be able to filter/sort based on values in the meta property.
Any help is much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions