File tree Expand file tree Collapse file tree
_project/api/_src/Usecases Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ const Query = matchWithEffect("Query")(
5656 Effect . gen ( function * ( $ ) {
5757 const handle = request ( req , ctx )
5858 const r : GraphQueryResponse = yield * $ (
59- Effect . structPar ( {
59+ Effect . allPar ( {
6060 // TODO: AllMe currently has a temporal requirement; it must be executed first. (therefore atm requested first..)
6161 // for two reasons: 1. create the user if it didnt exist yet.
6262 // 2. because if the user changes locale, its stored on the user object, and put in cache for the follow-up handlers.
@@ -94,7 +94,7 @@ function mutation<Key extends string>(
9494 : x . isLeft ( )
9595 ? Effect ( x )
9696 : ( q ?. query
97- ? Effect . structPar ( {
97+ ? Effect . allPar ( {
9898 query : Query . flatMap ( _ => _ ( q . query ! , ctx ) ) ,
9999 result : resultQuery ? resultQuery ( x . right , ctx ) : emptyResponse
100100 } ) . map ( ( { query, result } ) => ( { ...query , result } ) ) // TODO: Replace $ variables in the query parameters baed on mutation output!
@@ -110,7 +110,7 @@ const Mutation = matchWithEffect("Mutation")(
110110 Effect . gen ( function * ( $ ) {
111111 const handle = mutation ( req , ctx )
112112 const r : GraphMutationResponse = yield * $ (
113- Effect . structPar ( {
113+ Effect . allPar ( {
114114 CreatePost : handle (
115115 "CreatePost" ,
116116 blogPostControllers . CreatePost . h ,
You can’t perform that action at this time.
0 commit comments