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

Documented solution does not work anymore under "Pagination / Serializing to JSON" #24

Open
dunhamjared opened this issue Jun 4, 2024 · 0 comments

Comments

@dunhamjared
Copy link

dunhamjared commented Jun 4, 2024

Package versions:

"@adonisjs/core": "^6.8.0",
"@adonisjs/lucid": "^20.5.1",

Issue

I am unable to assign a custom naming strategy via db, as indicated in the docs:

db.SimplePaginator.namingStrategy = {
paginationMetaKeys() {
return {
// ... same as above
}
},
}

Details

It seems that the 'SimplePaginator' property was removed from the 'Database' class:
adonisjs/lucid@50b098b#diff-dd6241447ed15d4067fc846831102d2082e7a797d8421ab43ee2c89d61c3e2f0L63

Is there a new method for assigning a custom naming strategy globally?

@dunhamjared dunhamjared changed the title Documented solution does not work anymore Documented solution does not work anymore under "Pagination / Serializing to JSON" Jun 4, 2024
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

No branches or pull requests

1 participant