Skip to content

Commit 22b76b9

Browse files
author
karan verma
committed
feat: updating schemas
1 parent a81b160 commit 22b76b9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/schema/schema.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@ export default `
33
addBook(author: String, bookName: String): Book
44
}
55
type Query {
6-
books(filter: String, val: String): [Book]
6+
books(filter: String, val: String): [Book]
7+
authors: [Author]
78
}
89
type Book {
910
title: String,
10-
author: String
11+
authors: [Author]
1112
}
13+
type Author {
14+
name: String
15+
books: [Book]
16+
}
1217
`;

0 commit comments

Comments
 (0)