Detecting the presence of a value in a query returned from server connect in app connect

You can use the inArray condition in the where formatter:

serverconnect1.data.query.where(`item_code`, ['E','D'], 'inArray')

or maybe check the count:

serverconnect1.data.query.where(`item_code`, ['E','D'], 'inArray').count()

so if there are no matches it will return 0, which is false.