You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running a query with filters, the result of the query includes the fields in the filters, even if I don't include them in the body of the query. This issue has probably already been raised elsewhere.
importassertfrom'assert';import{expect}from'chai';import{Meteor}from'meteor/meteor';import{Accounts}from'meteor/accounts-base';describe.only('filters in body bug',function(){beforeEach(()=>{Meteor.users.remove({});});it('returns the token from the server',()=>{constuserId=Accounts.createUser({email: '[email protected]'});consttoken='token';Meteor.users.update(userId,{$set: {services: {password: {reset: { token }}}}});constresult=Meteor.users.createQuery({$filters: {'services.password.reset.token': token},emails: 1}).fetchOne();expect(result.emails).to.not.equal(undefined);expect(result.services).to.equal(undefined);// Fails});});
The text was updated successfully, but these errors were encountered:
When running a query with filters, the result of the query includes the fields in the filters, even if I don't include them in the body of the query. This issue has probably already been raised elsewhere.
Here's a reproduction (here's a repo you can clone: https://github.com/Floriferous/grapher-playground/tree/bug/filters-in-body):
The text was updated successfully, but these errors were encountered: