File tree Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 1818 "format" : " prettier . --write"
1919 },
2020 "dependencies" : {
21+ "@graphql-yoga/plugin-defer-stream" : " 3.16.0" ,
2122 "graphql" : " 16.11.0" ,
2223 "graphql-scalars" : " 1.25.0" ,
2324 "graphql-yoga" : " 5.16.0"
Original file line number Diff line number Diff line change 11import { createYoga , createSchema } from "graphql-yoga" ;
2+ import { useDeferStream } from "@graphql-yoga/plugin-defer-stream" ;
23import { typeDefs } from "./schema/typeDefs.generated" ;
34import { resolvers } from "./schema/resolvers.generated" ;
45import { data } from "./data" ;
@@ -9,4 +10,5 @@ export const yoga = createYoga<ResolverContext>({
910 schema : createSchema < ResolverContext > ( { typeDefs, resolvers } ) ,
1011 context : { data } ,
1112 maskedErrors : false ,
13+ plugins : [ useDeferStream ( ) ] ,
1214} ) ;
Original file line number Diff line number Diff line change 15531553 dset "^3.1.2"
15541554 tslib "^2.4.0"
15551555
1556+ " @graphql-tools/utils@^10.6.1 " :
1557+ version "10.10.0"
1558+ resolved "https://registry.yarnpkg.com/@graphql-tools/utils/-/utils-10.10.0.tgz#9b8eb5cb9bb101442c1145ee35beddda87ae40d3"
1559+ integrity sha512-OOeab5Y9qeKq0zfoJCSScMcDfGcIxp05+LW2xYVCS2l3su+K3lYcg5+cAAx9n0SFxpJl8zF5denq2QDsfM7NnQ==
1560+ dependencies :
1561+ " @graphql-typed-document-node/core" " ^3.1.1"
1562+ " @whatwg-node/promise-helpers" " ^1.0.0"
1563+ cross-inspect "1.0.1"
1564+ dset "^3.1.4"
1565+ tslib "^2.4.0"
1566+
15561567" @graphql-tools/utils@^10.6.2" , "@graphql-tools/utils@^10.7.0", "@graphql-tools/utils@^10.7.2":
15571568 version "10.7.2"
15581569 resolved "https://registry.yarnpkg.com/@graphql-tools/utils/-/utils-10.7.2.tgz#feafb7be9211570037288f5a3cadab76de41a097"
16111622 dependencies :
16121623 tslib "^2.8.1"
16131624
1625+ " @graphql-yoga/[email protected] " :
1626+ version "3.16.0"
1627+ resolved "https://registry.yarnpkg.com/@graphql-yoga/plugin-defer-stream/-/plugin-defer-stream-3.16.0.tgz#3619918b23a15f35143caa290270fd21aa17a80e"
1628+ integrity sha512-LGn8DSSIB4iWT/EgeXR+rIvl80LOlZqIZrnK4slNJLgnXyMyvXMSlIcE/NnzH4zQq1YRixZtshXNOtekrVH9+g==
1629+ dependencies :
1630+ " @graphql-tools/utils" " ^10.6.1"
1631+
16141632" @graphql-yoga/subscription@^5.0.5 " :
16151633 version "5.0.5"
16161634 resolved "https://registry.yarnpkg.com/@graphql-yoga/subscription/-/subscription-5.0.5.tgz#55e1dc472de866185d7c122e2c534023a331f65c"
You can’t perform that action at this time.
0 commit comments