Skip to content

Commit 3ef0ed2

Browse files
committed
update custom extension example
1 parent cbd3351 commit 3ef0ed2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

example/custom-api-schema.graphql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
extend type Query {
2-
hello: String!
2+
"""Return the version number of this server"""
3+
version: String!
34
}

example/custom-resolvers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module.exports = {
22
get: function(options) {
33
return {
44
Query: {
5-
hello: async (parent, args, context, info) => "Custom function says hello!"
5+
version: async (parent, args, context, info) => "X.Y.Z"
66
}
77
};
88
}

0 commit comments

Comments
 (0)