File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
import { property , constant } from 'lodash' ;
2
2
3
3
export const schema = [ `
4
+
5
+ # A comment about an entry, submitted by a user
4
6
type Comment {
5
7
postedBy: User!
6
8
createdAt: Float! # Actually a date
@@ -22,6 +24,7 @@ type Entry {
22
24
id: Int!
23
25
vote: Vote!
24
26
}
27
+
25
28
` ] ;
26
29
27
30
export const resolvers = {
@@ -44,6 +47,7 @@ export const resolvers = {
44
47
return context . Entries . haveVotedForEntry ( repository_name , context . user . login ) ;
45
48
} ,
46
49
} ,
50
+
47
51
Comment : {
48
52
createdAt : property ( 'created_at' ) ,
49
53
postedBy ( { posted_by } , _ , context ) {
Original file line number Diff line number Diff line change 47
47
"dotenv" : " ^2.0.0" ,
48
48
"express" : " ^4.13.4" ,
49
49
"express-session" : " ^1.13.0" ,
50
- "graphql" : " ^0.6.1 " ,
50
+ "graphql" : " ^0.7.0 " ,
51
51
"graphql-tools" : " ^0.6.2" ,
52
52
"knex" : " ^0.11.3" ,
53
53
"lodash" : " ^4.12.0" ,
You can’t perform that action at this time.
0 commit comments