Hi Sebastian,
It would be nice to bring the random feature to the graphql side.
E.g:
queryProductContents(take: 5, orderby: RANDOM) {flatData{bla bla…}
So when I want to get 5 random product items, I can achieve this.
Hi Sebastian,
It would be nice to bring the random feature to the graphql side.
E.g:
queryProductContents(take: 5, orderby: RANDOM) {flatData{bla bla…}
So when I want to get 5 random product items, I can achieve this.
I think no database supports it. The only option in your case would to pick 100 items or so and then select 5 of these.
In fact, the use of fetching random data from the requested database does not have to be with ‘orderby’. (take:5, random:true) can be added as feature.
sorry i can’t see “no database support.”
What do you mean with that?
Ok. I will do as you suggest. Thank you.
This topic was automatically closed after 2 days. New replies are no longer allowed.