-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Follow OpenCRUD specification #1057
Comments
If I might poke a little bit more at this, I think the general restAPI should as well to allow for easy use of swagger. I suggested such a feature a few months back to have swagger documentation included in strapi, but it wasn't in the pipeline. |
OpenAPI Specification: https://github.com/OAI/OpenAPI-Specification For the same reason as OpenCRUD and would allow for easy use of swagger with strapi (extremely useful for documenting the API without having to "try" and decipher the documentations page: https://strapi.io/documentation/guides/requests.html#api-reference |
Resposting here: Pagination using You can see in the OpenCRUD specification they allow using This feature request may be redundant if #1057 gets implemented first, but if you guys were planning on doing incremental feature additions to the GraphQL plugin, this would be a great one to have. Thanks! |
@lauriejim if I understand correctly this is not getting done? I'm trying to use https://gitlab.com/paulisloud/next-graphql-static-export with strapi but it asumes that you have cursor pagination with graphQL because i would rather prefer to export my complete API , i guess i would have to create my own process then |
It's not done and it's not a topic we will work on in next months. |
So, currently there is no an efficient way to fetch data with cursor. |
I need this feature quite a bit for several projects, been forced to hack around to get persistent filters to work, instead of relying on inbuilt functionality thats been gutted by strapi. |
@shved90 can you please show, how you did it with |
Too bad this isn't an option. I suppose one could order by some field (EG ...that works, right? 🤔 |
I'd like to see this feature implemented too! |
Any word on cursor based pagination? |
Argh then I'm stuck. Is there an easy way to implement custom cursor pagination? |
We will be looking as cursor pagination in Q3 when we do the database refresh: https://portal.productboard.com/strapi/1-roadmap/c/73-database-layer-v4 |
This is a good workaround, it works well in my current project! It even improves performance for large offsets because it uses the power of indexes. |
This issue has been mentioned on Strapi Community Forum. There might be relevant details there: |
What is the expected behavior?
We should follow the OpenCRUD specification for our GraphQL API. It will allow everyone to enjoy futures generic services like documentation (as Swagger does with REST API) and easily switch between different GraphQL APIs which are following the same specification.
Thank @schickling for the proposal! We'll add this to our roadmap and we'll certainly make the small changes when we'll develop the mutations part.
The text was updated successfully, but these errors were encountered: