When executing a query for a specific model, the query can return a result with other models than specified.
Example:
Following is expected to only return models of type house but will actually return data of both models house and person:
this.store.query('house', { filter: { title: {$regex: ".*"} } });
Models:
// app/models/house.js
import { attr } from '@ember-data/model';
import { Model } from 'ember-pouch';
export default class HouseModel extends Model {
@attr('string') title;
}
// app/models/person.js
import { attr } from '@ember-data/model';
import { Model } from 'ember-pouch';
export default class PersonModel extends Model {
@attr('string') title;
}
Environment
DEBUG: Ember : 3.17.3
DEBUG: Ember Data : 3.17.0
DEBUG: Ember Pouch : 7.0.0