We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bdaff3 commit 89b1096Copy full SHA for 89b1096
2 files changed
graphQLApollo/index.js
@@ -70,7 +70,14 @@ const resolvers = {
70
});
71
}
72
73
- }
+ },
74
+ // AuthorsAndBooks: {
75
+ // books(parent) {
76
+ // return db.address.filter((a) => {
77
+ // a.id === parent.id
78
+ // })
79
+ // }
80
+ // },
81
82
83
// The ApolloServer constructor requires two parameters: your schema
graphQLApollo/schema/schema.js
@@ -11,6 +11,7 @@ export const typeDefs = `#graphql
11
id: Int!
12
name: String!
13
address: Int!
14
+ books: [Book]
15
16
17
type Address {
0 commit comments