This commit is contained in:
sjvans
2021-11-04 17:31:57 +01:00
parent eaaf0d29a5
commit b13ed5cc8d
9 changed files with 173 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
book_ID;number;title
201;1;Chapter 1
201;2;Chapter 2
201;3;Chapter 3
1 book_ID number title
2 201 1 Chapter 1
3 201 2 Chapter 2
4 201 3 Chapter 3

15
graphql/db/schema.cds Normal file
View File

@@ -0,0 +1,15 @@
using {managed} from '@sap/cds/common';
using {sap.capire.bookshop} from '@capire/bookshop';
namespace sap.capire.graphql;
extend bookshop.Books with {
chapters : Composition of many Chapters
on chapters.book = $self;
}
entity Chapters : managed {
key book : Association to bookshop.Books;
key number : Integer;
title : String;
}