graphql: Don't pretend we support mutations
@@ -157,8 +157,6 @@ class GraphQLTranslator(ast.NodeVisitor):
if node.type is None or node.type == 'query':
stmt = self._visit_query(node)
- elif node.type == 'mutation':
- stmt = self._visit_mutation(node)
else:
raise ValueError(f'unsupported definition type: {node.type!r}')
@@ -211,9 +209,6 @@ class GraphQLTranslator(ast.NodeVisitor):
return query
- def _visit_mutation(self, node):
- raise NotImplementedError
-
def _should_include(self, directives):
for directive in directives:
if directive.name in ('include', 'skip'):
