Need to get the field having only null value using query

Please format your code as explained at About the Elasticsearch category

Then provide a full script which reproduce your issue as shown in the same link.