@@ -32,13 +32,17 @@ func NewTaskConnection(p *page.Page[*coredata.Task]) *TaskConnection {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewTaskEdge(f *coredata.Task) *TaskEdge {
|
func NewTaskEdge(t *coredata.Task) *TaskEdge {
|
||||||
return &TaskEdge{
|
return &TaskEdge{
|
||||||
Cursor: f.CursorKey(),
|
Cursor: t.CursorKey(),
|
||||||
Node: NewTask(f),
|
Node: NewTask(t),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewTask(e *coredata.Task) *Task {
|
func NewTask(t *coredata.Task) *Task {
|
||||||
return &Task{}
|
return &Task{
|
||||||
|
ID: t.ID,
|
||||||
|
CreatedAt: t.CreatedAt,
|
||||||
|
UpdatedAt: t.UpdatedAt,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user