denali-js / core

An opinionated, ORM agnostic framework for building robust JSON APIs in Node
http://denalijs.org
Apache License 2.0
73 stars 14 forks source link

priority of the resolvers is reversed #432

Open luxzeitlos opened 6 years ago

luxzeitlos commented 6 years ago

An app resolver should override the denali resolver. Currently its the other way around. This means nothing can ever override anything specified in the denalis app directory.

It seems that here this.resolvers[0] is the denali resolver which is unexpected, because the forEach will exit on the first hit.