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
I've been searching examples/documentations a lot for using queries as datasource but ended up with scarce mentionings of the topic. There's only one i came across in gatsby docs and it is a simple example of siteMetadata query data sourcing. Here my case is a need for complex data which includes: node.frontmatter.{stuff}, node.fields.{stuff} and it all in several languages, so then i can import that complex data object and filter out with language argument provided. So i'm still struggling.. And which of the two ( StaticQuery || useStaticQuery) is more suitable and/or preferable for this sort of usage.
This is more of a feature implementation question, i'm building a multilang site/blog but have custom directory/file structure and so have to implement few thing without popular gatsby pluging. Pardon me if this is not exactly the right place to ask like this, but i really think it would be of much benefit to have those details in docs. Thanx a lot
This discussion was converted from issue #28724 on December 30, 2020 10:29.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I've been searching examples/documentations a lot for using queries as datasource but ended up with scarce mentionings of the topic. There's only one i came across in gatsby docs and it is a simple example of siteMetadata query data sourcing. Here my case is a need for complex data which includes: node.frontmatter.{stuff}, node.fields.{stuff} and it all in several languages, so then i can import that complex data object and filter out with language argument provided. So i'm still struggling.. And which of the two ( StaticQuery || useStaticQuery) is more suitable and/or preferable for this sort of usage.
This is more of a feature implementation question, i'm building a multilang site/blog but have custom directory/file structure and so have to implement few thing without popular gatsby pluging. Pardon me if this is not exactly the right place to ask like this, but i really think it would be of much benefit to have those details in docs. Thanx a lot
Beta Was this translation helpful? Give feedback.
All reactions