Metaobject query returning string for boolean field with "false" value

I have a metaobject definition with a field that has a “boolean” type. When the field value is set to "true" within the metaobject entry, the API serves its jsonValue as a proper boolean true. However, when I set it to "false", it is served as a string.

See screenshots for examples of each case:


1 Like

Hey Kyle,

I’ve connected with the custom data team to see if this behaviour is expected and what their recommendation is.

Hi again - this does look to be a bug on our side and we’re looking into a fix for this.

1 Like

Good to know! Thanks for following up on this. :grinning_face:

Hi there. I’ve also noticed some strange functionality with this. Updating a metafield value to true works, but false doesn’t work. Would this be the same bug?

Hi @hinz - It’s possible this is connected - I’ve informed the team who are working on this issue on the functionality you’ve described, however I’ve no ETA available for a fix on this.