Skip to content

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

Closed
@LiangNex

Description

@LiangNex

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

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