Skip to content

Commit 17c8ca6

Browse files
committed
Add support for refetchInterval
1 parent c9a4696 commit 17c8ca6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gatsby-node.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const PostGraphileLink = require("./PostGraphileLink");
66

77
exports.sourceNodes = async (
88
utils,
9-
{ typeName = "PostGraphile", fieldName = "postgres", ...options }
9+
{ typeName = "PostGraphile", fieldName = "postgres", refetchInterval, ...options }
1010
) => {
1111
const { connectionString, schema: postgresSchema, ...rest } = options;
1212

@@ -18,6 +18,7 @@ exports.sourceNodes = async (
1818
await gatsbySourceGraphQLNode.sourceNodes(utils, {
1919
typeName,
2020
fieldName,
21+
refetchInterval,
2122
createLink: () => new PostGraphileLink({ pool, schema: graphqlSchema }),
2223
createSchema: () => graphqlSchema,
2324
});

0 commit comments

Comments
 (0)