@cran/gql.core
Version:
Cran/GraphQL Core Utilities
16 lines (15 loc) • 476 B
JavaScript
export const withoutSuggestions = {
async requestDidStart() {
return {
async validationDidStart() {
return async function validationDidEnd(errors) {
if (errors) {
for (const error of errors) {
error.message = error.message.replace(/\s*Did you mean.*?\?/u, "");
}
}
};
},
};
},
};