hi,
when I use this query :
...
const menuQuery={ menuDemo { ...on menu_links { non-repeat { ...non-repeatFields } } } }
i have this error
Server Error
Error: Unable to parse fetch query Invalid fetch parsing Exception.
Invalid input ' ', expected AlphaNum, AlphaChar, '_', '-' or test (line 3, column 10):
...on menu_links {
^
5 rules mismatched at error location:
...bracketed/ /$anonfun/ +:-9 /Relation/ |:-5 /Fragment/ /FragmentName/ /Key/ capture:-2 / +:-2 / | / AlphaNum:
...racketed/ /$anonfun/ +:-9 /Relation/ |:-5 /Fragment/ /FragmentName/ /Key/ capture:-2 / +:-2 / | / AlphaChar:
...nonfun/ +:-24 /Doc/ /bracketed/ /$anonfun/ +:-9 /Relation/ |:-5 /Fragment/ /FragmentName/ /Key/ capture:-2 / +:-2 / | / '_'
...nonfun/ +:-24 /Doc/ /bracketed/ /$anonfun/ +:-9 /Relation/ |:-5 /Fragment/ /FragmentName/ /Key/ capture:-2 / +:-2 / | / '-'
...s/ /bracketed/ /$anonfun/ +:-24 /Doc/ /bracketed/ /$anonfun/ +:-9 /Relation/ |:-5 /Fragment/ /FragmentName/ / test
This error happened while generating the page. Any console logs will be displayed in the terminal window.
Source
pages/index.js (51:76) @ async getStaticProps
49 |
50 | const doc = await client.getSingle("homepage", { lang: locale });
51 | const menu = await client.getSingle("menuDemo", {lang: locale , graphQuery : menuQuery});
| ^
52 |
53 | return {
54 | props: {
Show collapsed frames