We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e0c9e2 commit e5e4507Copy full SHA for e5e4507
frappe_graphql/api.py
@@ -2,7 +2,7 @@
2
from typing import List
3
4
import frappe
5
-from frappe.utils import cint
+from frappe.utils import cint, strip_html_tags
6
from . import get_schema
7
from .graphql import execute
8
from .utils.depth_limit_validator import depth_limit_validator
@@ -41,6 +41,7 @@ def execute_gql_query():
41
for err in output.errors:
42
if isinstance(err, GraphQLError):
43
err = err.formatted
44
+ err['message'] = strip_html_tags(err.get("message"))
45
errors.append(err)
46
output.errors = errors
47
0 commit comments