Skip to content

How to get JSON files from S3 in GraphQL #11

@ppatel31

Description

@ppatel31

I created S3 bucket and "data" folder have all JSON files.

I used gatsby-source-s3 plugin to access JSON files from S3.

I am able to get "allS3Object" using graphQL which return list of all JSON files available on S3 bucket.

{
allS3Object {
edges {
node {
id
}
}
}
}

I need to read individual JSON file to generate static pages using GraphQL & GatsBy.
But not able to read any individual file or Group of schema like all post of blog
for Example

allBlogJson {
edges {
node {
blog {
id
url
title
description
updateddate
}
}
}
}

Please let me know if you have any idea on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions