Skip to content

Commit 057324b

Browse files
committed
test useQuery
1 parent fe610f1 commit 057324b

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

server/graphQL/typeDefs.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,7 @@ const { gql } = require('apollo-server-express');
44

55
const typeDefs = gql`
66
# Comments in GraphQL strings (such as this one) start with the hash (#) symbol.
7-
8-
# This "Book" type defines the queryable fields for every book in our data source.
9-
type Book {
10-
title: String
11-
author: Author
12-
}
13-
type Author {
14-
name: String
15-
books: [Book]
16-
}
7+
178
type Mutation {
189
addTest(name: String): Test
1910
updateTest(id: String, name: String): Test

0 commit comments

Comments
 (0)