CMS Development

MVad
Member | Elite Partner
Member | Elite Partner

GraphQL - Problem with LTE filter not matching data with GraphiQL on frontend.

There seems to be something wrong with the __lte  filter in GraphQL, when used on the frontend.

In GraphiQL it shows the right data in the collection, but not on the frontend.


Compare the two images, of GraphiQL and the frontend.

 

I’m using query params for start_time and end_time: # $start_time: {{ request.query_dict.start_time || '' }}.

An extreme example, but the start_time from the 2nd event is set far out in the future. And it should not be shown as per GraphiQL, but does show on the frontend.

 

If I change the date span, to check if start_time__gte works, it’s flawless (3rd screenshot)


So in all cases gte works, but not lte .

The data source is HubDB, and the DateTime column types.

 

Have any of you had the same issue, or found a way around it?

 

CleanShot 2023-03-14 at 15.37.29.pngCleanShot 2023-03-14 at 15.38.25.pngCleanShot 2023-03-14 at 15.41.15.png

 

0 Upvotes
1 Reply 1
PamCotton
Community Manager
Community Manager

GraphQL - Problem with LTE filter not matching data with GraphiQL on frontend.

Hello @MVad Happy Friday!

Let's invite some top experts to this conversation to share their thoughts about it: @Kevin-C @Jnix284 @mangelet any recommendations to offer @MVad?

 

Thank you,

Pam

Você sabia que a Comunidade está disponível em outros idiomas?
Participe de conversas regionais, alterando suas configurações de idioma !


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !




0 Upvotes