Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added "createPaginationMeta" helper function for manual creation of pagination meta #265

Merged
merged 1 commit into from
Oct 27, 2018

Conversation

adrians5j
Copy link
Member

@adrians5j adrians5j commented Oct 27, 2018

This can be used to manually create pagination meta.

Example:

import { createPaginationMeta } from "webiny-entity";

let meta = createPaginationMeta({
    page: 1,
    perPage: 10,
    totalCount: 100
});

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) to 94.928% when pulling eec6a1d on createPaginationMeta into 97b014d on development.

@adrians5j adrians5j merged commit f43117f into development Oct 27, 2018
@adrians5j adrians5j deleted the createPaginationMeta branch October 27, 2018 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants