Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8e1e861

Browse files
author
Sashko Stubailo
committed
Upgrade graphql-js, now we have descriptions
1 parent f643200 commit 8e1e861

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

api/sql/schema.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { property, constant } from 'lodash';
22

33
export const schema = [`
4+
5+
# A comment about an entry, submitted by a user
46
type Comment {
57
postedBy: User!
68
createdAt: Float! # Actually a date
@@ -22,6 +24,7 @@ type Entry {
2224
id: Int!
2325
vote: Vote!
2426
}
27+
2528
`];
2629

2730
export const resolvers = {
@@ -44,6 +47,7 @@ export const resolvers = {
4447
return context.Entries.haveVotedForEntry(repository_name, context.user.login);
4548
},
4649
},
50+
4751
Comment: {
4852
createdAt: property('created_at'),
4953
postedBy({ posted_by }, _, context) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"dotenv": "^2.0.0",
4848
"express": "^4.13.4",
4949
"express-session": "^1.13.0",
50-
"graphql": "^0.6.1",
50+
"graphql": "^0.7.0",
5151
"graphql-tools": "^0.6.2",
5252
"knex": "^0.11.3",
5353
"lodash": "^4.12.0",

0 commit comments

Comments
 (0)