Decleare PaginateQuery as Object #583
Replies: 4 comments 3 replies
-
should be straight foward. instead using the decorator, you can simply build your own query object by using req body params and pass it to |
Beta Was this translation helpful? Give feedback.
-
I am using ngrx store in the frontend and it would be very cool if i could integrate the queries direktly in the effects like that: something$ = createEffect(this.actions.pipe(map => { in api service: listSomething(query: PaginationQuery): Observable<Paginated> { this way i can use my api in mutliple contexts without messing with any url segments |
Beta Was this translation helpful? Give feedback.
-
@ppetzold Thanks you - i forgot to type the response in the frontend and therefor didn't see what i was looking for. so never mind and thank you for the fas response and the great work! |
Beta Was this translation helpful? Give feedback.
-
dear mr @ppetzold can you help me solving this problem? I want to filter the table based on this params: i tried it like that:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for this well appreciated lib!
There is just one thing, i would like to address:
the query Object of Type PaginateQuery is passed through a decorator which deconstructs the url -> i would really enjoy passing something like {limit: 10, searchText: 'hi'} through a post request.
Would be really nice to have.
Thank you for your attention
Beta Was this translation helpful? Give feedback.
All reactions