3 ms·
Application error: a client-side exception has occurred while loading pure-palm-djnlwn.manyminiapps.com (see the browser console for more information). Uncaugh
by NoSalt 1y ago
Application error: a client-side exception has occurred while loading pure-palm-djnlwn.manyminiapps.com (see the browser console for more information).
Uncaught QueryValidationError: At path 'worlds.snapshots.$': 'limit' can only be used on top-level namespaces. It cannot be used in nested queries.
NextJS 7
tP
tL
tq
tq
tV
subscribeQuery
subscribeQuery
122-677938205b479825.js:1:45042
NextJS 128
tP
tL
tq
tq
tV
subscribeQuery
subscribeQuery
a
av
o0
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
ux
uS
- stopachka 1y agoOh, interesting! I just took a look. I updated the system prompt a bit, here's a version of your app that's working with it: https://brave-elm-7m6ar8.manyminiapps.com/ https://brave-elm-7m6ar8.manyminiapps.com/ (The chat: https://www.manyminiapps.com/?c=1a5d3481-d2e2-414c-a7c3-4d0c8ab73307 https://www.manyminiapps.com/?c=1a5d3481-d2e2-414c-a7c3-4d0c...) --- For the curious, the issue was that the LLM originally decided to write the query: ``` const { data } = db.useQuery({ worlds: { $: { order: { createdAt: 'desc' } }, snapshots: { $: { order: { timestamp: 'desc' }, limit: 1 } } } }); ``` But we don't support limits on subqueries yet. We had a specific note in the system prompt warning the LLM to avoid this. Interestingly, _removing_ the warning fixed the issue. I guess it's kind of like telling someone to not think of a red elephant.