Jordan
12/05/2018, 5:23 PMJordan
12/05/2018, 5:26 PMexport const blockBannedUserMiddleware = async (resolve: any, parent: any, args: any, context: Context, info: any) => {
// check if user is banned based on context, if so throw forbidden error
return resolve(parent, args, context, info);
};
Jordan
12/05/2018, 5:26 PMJordan
12/05/2018, 5:46 PM(IMiddleware | IMiddlewareGenerator<any, any, any>)[];
, we're applying the middleware via applyMiddleware(schema, middlewares)
and feeding that into a new ApolloServer
instanceJordan
12/05/2018, 5:46 PMconst schemaWithMiddleware = applyMiddleware(schema, ...this.graphqlMiddlewares);
this.server = this.createServer(schemaWithMiddleware);
Jordan
12/05/2018, 5:47 PMJordan
12/05/2018, 5:48 PMJordan
12/05/2018, 5:49 PMJordan
12/05/2018, 5:53 PMjamesmbowler
12/05/2018, 9:33 PMlastmjs
12/06/2018, 3:00 AMlastmjs
12/06/2018, 3:02 AMdoums
12/06/2018, 10:49 AM@id
, @createdAt
etc..) is currently only available for MongoDB Right ? So the new 1.22 release changes nothing for others db ?
Also in the future, will the embedded type be available for other underlying db than Mongo ?Rowland
12/06/2018, 11:15 AMIndustrial
12/06/2018, 11:27 AMIndustrial
12/06/2018, 11:27 AMUnhandledPromiseRejectionWarning: Error: GraphQL error: Cannot query field 'executeRaw' on type 'Mutation'. (line 2, column 3):
Hyo
12/06/2018, 12:52 PMprisma
today and hope to get engaged in this community.Hyo
12/06/2018, 12:52 PMrooneyK
12/06/2018, 2:43 PM$subscribe
in the prisma-client
. This seems to work great, except that if the prisma-backend is not reachable at the time when we set up the subscription, it will not give us any feedback, and no reconnect if the connection drops. Is there a way to access onDisconnected
etc to attempt to reconnect?leafyshark
12/06/2018, 3:19 PMsven
12/06/2018, 3:25 PMCoe
12/06/2018, 4:01 PMLuis Cervantes
12/06/2018, 6:36 PMTony
12/06/2018, 8:48 PMroberto.guerra
12/06/2018, 8:49 PMTony
12/06/2018, 9:02 PMleafyshark
12/06/2018, 9:27 PMleafyshark
12/06/2018, 9:28 PMleafyshark
12/06/2018, 9:28 PMleafyshark
12/06/2018, 10:11 PM