aws-amplify / amplify-codegen
Showing 1 of 2 files from the diff.

@@ -436,7 +436,13 @@
Loading
436 436
      // Make id field required
437 437
      idField.isNullable = false;
438 438
    } else {
439 -
      throw new Error(`${model.name} model does not have the required id field`);
439 +
      model.fields.splice(0, 0, {
440 +
        name: 'id',
441 +
        type: 'ID',
442 +
        isNullable: false,
443 +
        isList: false,
444 +
        directives: [],
445 +
      });
440 446
    }
441 447
  }
442 448
Files Coverage
packages 84.42%
Project Totals (139 files) 84.42%
1
codecov:
2
  notify:
3
    after_n_builds: 1
4

5
coverage:
6
  status:
7
    project: off
8
    patch: off
9
    changes:
10
      default:
11
        target: 80%
12
        if_not_found: success
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading