Skip to content

Commit

Permalink
pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
ravlio committed Nov 12, 2024
1 parent c92427b commit ab45255
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ _testmain.go
*.test

.DS_Store
.idea
7 changes: 4 additions & 3 deletions server/graphql/models/pagination.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ func (p *Page) Pagination() *repository.Pagination {
return nil
}
return &repository.Pagination{
After: gocast.PtrAsValue(p.After, ""),
Page: gocast.PtrAsValue(p.StartPage, 1),
Size: gocast.PtrAsValue(p.Size, 0),
After: gocast.PtrAsValue(p.After, ""),
Offset: gocast.PtrAsValue(p.Offset, 0),
Page: gocast.PtrAsValue(p.StartPage, 1),
Size: gocast.PtrAsValue(p.Size, 0),
}
}

0 comments on commit ab45255

Please sign in to comment.