docs: photo.views/isPublished are required fields (#6970)

* photo.views is required field

In the many-to-many photos/albums example - photo.views is required field

* photo.isPublished must be provided

Fixes `null value in column "isPublished" violates not-null constraint`
This commit is contained in:
Dr Nic Williams 2020-10-26 15:51:32 +10:00 committed by GitHub
parent 343042dc67
commit 3902fd1c9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1205,6 +1205,8 @@ let photo = new Photo();
photo.name = "Me and Bears";
photo.description = "I am near polar bears";
photo.filename = "photo-with-bears.jpg";
photo.views = 1
photo.isPublished = true
photo.albums = [album1, album2];
await connection.manager.save(photo);