You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using queryContent in Document Driven mode, the results are as expected, but when I pass this query to fetchContentNavigation the results are different. I thought it might be #1778 but I have the same issue with @nuxt/content-edge
Should this be possible and or am I just querying incorrectly/misunderstanding how it works?
This is fixed in #1778 and currently available in the edge channel.
Try using edge channel for to solve this issue, the next release might come in two weeks
Environment
Darwin
v18.7.0
3.0.0
1.0.0
npm@8.18.0
vite
tailwindcss
,css
,postcss
,modules
,ssr
,content
@nuxt/content@2.3.0-27871967.30c26e3
-
Reproduction
https://stackblitz.com/edit/github-mkcbxm?file=content%2Ffoo%2Ffoo2%2Fbar2.md,nuxt.config.ts,pages%2F[...slug].vue
Describe the bug
When using
queryContent
in Document Driven mode, the results are as expected, but when I pass this query to fetchContentNavigation the results are different. I thought it might be #1778 but I have the same issue with @nuxt/content-edgeShould this be possible and or am I just querying incorrectly/misunderstanding how it works?
Given:
I'd expect
fetchContentNavigation(queryContent('/foo/foo2'))
to give:[ { title: 'Foo2', _path: '/foo/foo2', children: [ [Object] ] } ]
and the same from
fetchContentNavigation(queryContent().where({ _path: { $contains: '/foo/foo2' } }))
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: