gatsby-source-graphql
without fieldName
namespace
#31357
Unanswered
rootkowsky
asked this question in
Help
Replies: 1 comment
-
I've done some investigations, and realized that excerpt from
I have an ugly walkaround for that :|
and a little bit better solution: |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I would like to omit
fieldName
wrapping ingatsby-source-graphql
, because of Collection routes, which require fields with specific names (all
prefix) and access from root level.What I have done:
And it seems to be working, but only on
gatsby develop
. Ongatsby build
there are some warns/errors, i.e:Also, the
{Posts.slug}.js
component does not receivedata
field inprops
I would be grateful for any hint.
Beta Was this translation helpful? Give feedback.
All reactions