graphql-engine/community/sample-apps/gatsby-postgres-graphql/gatsby-config.js

14 lines
294 B
JavaScript

module.exports = {
plugins: [
{
resolve: "gatsby-source-graphql",
options: {
typeName: "HASURA",
fieldName: "hasura",
url: process.env.GATSBY_HASURA_GRAPHQL_URL,
refetchInterval: 10 // Refresh every 60 seconds for new data
}
}
]
};