Skip to content

Is it possible to execute grapql from components itself rather than pages or layouts? #4727

Closed
@LiangNex

Description

Hi Gatsby!

I learned Gatsby for a while and made several tests with plugins:

  • gatsby-transformer-remark
  • gatsby-transformer-json
  • gatsby-transformer-custom-blocks

My purpose is to use custom blocks plugin in Markdown to implement a list component which includes data from local json files, hence i need to execute Graphql in components but not in pages nor layouts, is it possible?

Thx a lot

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions