Update resource.js

The action name should be 'query'.