Communicating between createPage
and the template
, how?
#11774
Labels
type: question or discussion
Issue discussing or asking a question about Gatsby
When creating pages with templates, the way the docs guide us (AFAIU) here is that by creating a page with context, we'll be able to retrieve this context when on the template file.
But the key is here:
so that anything that you add here (from docs):
you will be able to select it when inside the template by querying it:
But, if you don't use the plugin, then whatever you add to the context will be there, but not in the schema (?), so you will not be able to query for your specific node by using
$slug
Then, the question is, how is this done? How can I send to the template the content I want it to format? Because when I'm in the template I only have access to graphql that shows me all the existing nodes, but no obvious way to use the specific node I am processing at that time
The text was updated successfully, but these errors were encountered: