File tree Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ export const FEED_QUERY = gql`
9
9
feed(first: $first, skip: $skip, orderBy: $orderBy) {
10
10
links {
11
11
id
12
- createdAt
13
12
url
14
13
description
15
14
postedBy {
@@ -22,6 +21,7 @@ export const FEED_QUERY = gql`
22
21
id
23
22
}
24
23
}
24
+ createdAt
25
25
}
26
26
count
27
27
}
@@ -34,7 +34,6 @@ const NEW_LINKS_SUBSCRIPTION = gql`
34
34
id
35
35
url
36
36
description
37
- createdAt
38
37
postedBy {
39
38
id
40
39
name
@@ -45,6 +44,7 @@ const NEW_LINKS_SUBSCRIPTION = gql`
45
44
id
46
45
}
47
46
}
47
+ createdAt
48
48
}
49
49
}
50
50
` ;
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ import App from "./components/App";
16
16
import { AUTH_TOKEN , LINKS_PER_PAGE } from './constants' ;
17
17
import { FEED_QUERY } from './components/LinkList' ;
18
18
import * as serviceWorker from "./serviceWorker" ;
19
- // import { timeDifferenceForDate } from './utils';
20
19
21
20
const cache = cacheExchange ( {
22
21
keys : {
@@ -28,19 +27,6 @@ const cache = cacheExchange({
28
27
// Optimistic is not possible due to the nature of the data-structure
29
28
// every vote needs to have an unique id for a unique userId...
30
29
31
- // We could write a custom resolver to format the datetime of a post
32
- // to indicate the text of x time ago.
33
- // TODO: found inconsistency with resolvers
34
- // Initial write does not respect the resolvers given for querying data.
35
- // resolvers: {
36
- // Link: {
37
- // createdAt: (parent) => {
38
- // console.log('in link resolver');
39
- // return timeDifferenceForDate(parent.createdAt);
40
- // }
41
- // }
42
- // },
43
-
44
30
// Mutations that need updates due to adding/removing/... to a list
45
31
// Will most likely come here. We can't make assumptions for adding to
46
32
// a list.
You can’t perform that action at this time.
0 commit comments