graphile-contrib/graphql-sse

Implement usage of the dynamic `"postgraphile:validationRules"` hook

enisdenjo opened this issue · 0 comments

graphql-sse/src/index.ts

Lines 104 to 120 in 1879046

// TODO: implement if necessary
// // You are strongly encouraged to use
// // `postgraphile:validationRules:static` if possible - you should
// // only use this one if you need access to variables.
// const moreValidationRules = pluginHook('postgraphile:validationRules', [], {
// options,
// req,
// res,
// variables: variableValues,
// operationName: operationName,
// });
// if (moreValidationRules.length) {
// const moreValidationErrors = validate(schema, document, moreValidationRules);
// if (moreValidationErrors.length) {
// return moreValidationErrors;
// }
// }