Skip to content

Commit cc45ae8

Browse files
committed
schema update
1 parent c19f6e0 commit cc45ae8

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "graphql-dev",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "make developers effort less",
55
"main": "src/index.js",
66
"scripts": {

src/samples/asoiaf/resolvers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
export const resolvers = {
33
Query: {
44
getBooks: async (_, { }, { dataSources }) => {
5-
return await dataSources.asoiafApi.getBooks();
5+
return await dataSources.AsoiafDataSource.getBooks();
66
},
77

88
getCharacters: async (_, { }, { dataSources }) => {
9-
return await dataSources.asoiafApi.getCharacters();
9+
return await dataSources.AsoiafDataSource.getCharacters();
1010
},
1111
},
1212
};

src/samples/asoiaf/typeDefs.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ export const typeDefs = gql`
77
}
88
type Book {
99
name: String,
10-
publiser: String,
11-
releases: String
10+
publisher: String,
11+
released: String
1212
}
1313
type Character {
1414
name: String,
1515
culture: String,
16-
born: String
16+
born: String,
17+
url
1718
}
1819
`;

0 commit comments

Comments
 (0)