Unexpected behaviour when using findOne() in child folders to query CSV file. #2779
Unanswered
nikitaWebApps
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone!
I've got a problem with Nuxt Content. Here's what I've done:
const { data } = await useAsyncData('somedata', () => (queryContent('child').findOne()))
This return null. For me that is strange, because if i change the code to this:
const { data } = await useAsyncData('somedata', () => (queryContent('child').find().at(0)))
it parses the table content correctly.
I've made a minimal reproduction to describe the problem. May be I don't understand how queryContent() works, but for me it seems like a strange behaviour.
Any help would be appreciated! Thank you!
Beta Was this translation helpful? Give feedback.
All reactions