Does additional_data still work? #1143
Answered
by
mattmcgrattan
mattmcgrattan
asked this question in
Q&A
-
I've tried passing in some simple information (such as a facet count) via the e.g. async def read_all_forms():
forms = Form.find_all()
return await paginate(forms, additional_data={"foo": "bar"}) Does not return the additional data in the paginated output. Has it been deprecated? |
Beta Was this translation helpful? Give feedback.
Answered by
mattmcgrattan
May 2, 2024
Replies: 1 comment 1 reply
-
Hi @mattmcgrattan, It should work. Which |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I worked it out. The documentation isn't clear, I don't think, that I needed to define a new custom page class in order for the new data to appear.
I looked again at your tests
fastapi-pagination/tests/test_paginator.py
Line 75 in 30bf470
Thank you for the response, though.