isArray: true
is the default for query
, and that's also what the error message says.
Note that in your code you write it with a capital I: IsArray
.
So it's ignored by angular and your code is equivalent to 'query': {method:'GET'}
which in turn is equivalent to 'query': {method:'GET', isArray:false}
. That's why you don't get an error in both cases.