New DQL JSON Export filter - ' &filterExclude'
by Kris NegulescuWhen exporting data from collections via DQL, you have always had the option of specifying ONLY the fields you want to be returned in the JSON output by using the '&filter=' param, i.e. &filter=id%20name%20homepageUri added to [ https://kg.diffbot.com/kg/v3/dql?type=query&token=TOKEN&query=type%3AOrganization+types%3A%22Company%22&size=25&filter=id%20name%20homepageUri ]. But this approach can be unwieldy if you have a long list of attributes to include or if you only want to exclude a few attributes per entity in the output.
Now you can exclude fields you do not want to be returned when exporting data by adding the '&filterExclude=' param, i.e. &filterExclude=subsidiaries%20technologies%20customers added to [ https://kg.diffbot.com/kg/v3/dql?type=query&token=TOKEN&query=type%3AOrganization+types%3A%22Company%22&size=25&filterExclude=subsidiaries%20technologies%20customers ].