Skip to content

Choose a tag to compare

@neo4j-team-graphql neo4j-team-graphql released this 16 Oct 12:39
· 1 commit to dev since this release
da15c93

Minor Changes

  • #6740 5cdb2eb Thanks @luffy1727! - Add the ability to specify transaction configuration. e.g. timeout

    const transactionConfig = {
        timeout: 60 * 1000,
        metadata: {
            "my-very-own-metadata": "is very good!",
        },
    };
    
    const neoSchema = new Neo4jGraphQL({ typeDefs, driver });
    
    const server = new ApolloServer({
        schema: await neoSchema.getSchema(),
    });
    
    await startStandaloneServer(server, {
        context: async ({ req }) => ({ req, transaction: transactionConfig }),
    });