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.
2 parents 6f7e1f2 + 33fdcc2 commit 8f3897aCopy full SHA for 8f3897a
snippets/updating-data/create-record/handler.js
@@ -2,9 +2,10 @@
2
import { recordIdentifierFor } from '@ember-data/store';
3
import { serializeResources } from '@ember-data/json-api/request';
4
5
-const updatesHandler = {
6
- MUTATION_OPS: new Set(['createRecord', 'updateRecord']),
+const MUTATION_OPS = new Set(['createRecord', 'updateRecord']);
+
7
8
+const updatesHandler = {
9
request(context, next) {
10
if (!MUTATION_OPS.has(context.request.op)) {
11
// Not a mutation, do nothing
0 commit comments