This repository was archived by the owner on Apr 17, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed
packages/graphback-datasync Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ export class DataSyncPlugin extends GraphbackPlugin {
179
179
DeltaOTC . addFields ( { [ field . name ] : field . type . toString ( ) } )
180
180
}
181
181
182
- modelTC . addFields ( {
182
+ DeltaOTC . addFields ( {
183
183
[ DataSyncFieldNames . lastUpdatedAt ] : {
184
184
type : TimestampSTC . getType ( ) ,
185
185
description : "@index(name: 'Datasync_lastUpdatedAt')"
@@ -190,10 +190,6 @@ export class DataSyncPlugin extends GraphbackPlugin {
190
190
[ DataSyncFieldNames . deleted ] : GraphQLBoolean
191
191
} )
192
192
193
- DeltaOTC . addFields ( {
194
- [ DataSyncFieldNames . deleted ] : GraphQLBoolean
195
- } )
196
-
197
193
// Create and Add Delta List type to schema
198
194
const DeltaListOTC = schemaComposer . createObjectTC ( {
199
195
name : getDeltaListType ( modelName ) ,
Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ type CommentDelta {
22
22
title : String
23
23
description : String
24
24
noteId : ID
25
+
26
+ \\" \\ " \\" @index(name: 'Datasync_lastUpdatedAt')\\ " \\" \\ "
27
+ _lastUpdatedAt : GraphbackTimestamp
25
28
_deleted : Boolean
26
29
}
27
30
@@ -134,6 +137,9 @@ type NoteDelta {
134
137
title : String
135
138
description : String
136
139
mainCommentId : ID
140
+
141
+ \\" \\ " \\" @index(name: 'Datasync_lastUpdatedAt')\\ " \\" \\ "
142
+ _lastUpdatedAt : GraphbackTimestamp
137
143
_deleted : Boolean
138
144
}
139
145
@@ -241,6 +247,9 @@ type CommentDelta {
241
247
title : String
242
248
description : String
243
249
_version : Int !
250
+
251
+ \\" \\ " \\" @index(name: 'Datasync_lastUpdatedAt')\\ " \\" \\ "
252
+ _lastUpdatedAt : GraphbackTimestamp
244
253
_deleted : Boolean
245
254
}
246
255
@@ -371,6 +380,9 @@ type CommentDelta {
371
380
id : ID !
372
381
title : String
373
382
description : String
383
+
384
+ \\" \\ " \\" @index(name: 'Datasync_lastUpdatedAt')\\ " \\" \\ "
385
+ _lastUpdatedAt : GraphbackTimestamp
374
386
_deleted : Boolean
375
387
}
376
388
You can’t perform that action at this time.
0 commit comments