-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
folder tree / images files #4
Comments
Hey @marioamandio! After this plugin downloads a folder, it behaves just like other files and folders in your filesystem. You can then use // In your gatsby-config.js
module.exports = {
plugins: [
{
resolve: `@fs/gatsby-plugin-drive`,
options: {
// ...
destination: path.join(__dirname, 'src/data/'),
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `gdrive`,
path: `${__dirname}/src/data/`,
},
},
],
} # In your queries
{
allFile {
edges {
node {
extension
dir
modifiedTime
}
}
}
} You can use GraphiQL (at http://localhost:8000/___graphql) to explore the queries and filtering options. Also take a look at the |
Hey again @fabe, thank you for your answer but didn't solve my problem, the configuration is in place and my google drive setup API is receiving the request and creates the folder that I can query but this folder is empty, is anything wrong with
|
Did you manage to fix this @marioamandio? The config looks fine. |
Having similar issue as @marioamandio where gatsby develop says downloading content but folder is empty |
I'm new using Gatsby, I'd like to know if there's any way of query a folder tree and .png, .jpg files. And, if so, could you please provide some query examples?
Thank you in advance
The text was updated successfully, but these errors were encountered: