diff options
Diffstat (limited to 'api/graphql/connections/gen_operation.go')
-rw-r--r-- | api/graphql/connections/gen_operation.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/api/graphql/connections/gen_operation.go b/api/graphql/connections/gen_operation.go index 4bd84895..848cebd6 100644 --- a/api/graphql/connections/gen_operation.go +++ b/api/graphql/connections/gen_operation.go @@ -8,23 +8,23 @@ import ( "fmt" "github.com/MichaelMure/git-bug/api/graphql/models" - "github.com/MichaelMure/git-bug/bug" + "github.com/MichaelMure/git-bug/entity/dag" ) -// BugOperationEdgeMaker define a function that take a bug.Operation and an offset and +// DagOperationEdgeMaker define a function that take a dag.Operation and an offset and // create an Edge. -type OperationEdgeMaker func(value bug.Operation, offset int) Edge +type OperationEdgeMaker func(value dag.Operation, offset int) Edge // OperationConMaker define a function that create a models.OperationConnection type OperationConMaker func( edges []*models.OperationEdge, - nodes []bug.Operation, + nodes []dag.Operation, info *models.PageInfo, totalCount int) (*models.OperationConnection, error) // OperationCon will paginate a source according to the input of a relay connection -func OperationCon(source []bug.Operation, edgeMaker OperationEdgeMaker, conMaker OperationConMaker, input models.ConnectionInput) (*models.OperationConnection, error) { - var nodes []bug.Operation +func OperationCon(source []dag.Operation, edgeMaker OperationEdgeMaker, conMaker OperationConMaker, input models.ConnectionInput) (*models.OperationConnection, error) { + var nodes []dag.Operation var edges []*models.OperationEdge var cursors []string var pageInfo = &models.PageInfo{} |