Contentful logo

Contentful Community

Query on a boolean field returns nothing when false

Hi,

i created a boolean field. When i set it to false, the api do not return the field, but when set to true, i get the field with the value true.

I dont get it?..

When i preview the entry in the dicovery app, my field has the content ‘No’ which mean false.

Why i cant retrieve the field when the value is false…?

Thanks

Hi @olivier.castro-perri,

That is certainly not the expected behaviour from our API, and it should return a false value when assigned.

Would you mind creating a support ticket here so that our team can further investigate this problem? It would be great if you could tell us what are the affected entries and the actual requests that you’re sending.

1 Like