/** * Use this constructor when the docs and base are not constant for the query service and need to * be set just before the query. You must also override the prepareContext method. * * @param origin */ QueryService(Resource origin) { this.namespaceBindings = origin.namespaceBindings().extend(); this.db = origin.database(); }