Skip to content

query returns different types of models, instead of single specified one #258

@adezegher

Description

@adezegher

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions