feathersjs / feathers

The API and real-time application framework
https://feathersjs.com
MIT License
15.03k stars 750 forks source link

dove return wrong results from code with two params. #2884

Closed andysay closed 1 year ago

andysay commented 1 year ago
    const result = app.service("users").find({
        query: {
            email: data.email,
            username: data.username,
        },
    });

in db have email and username from url return 1 , from code 0 .

5.0.0-pre.33..

andysay commented 1 year ago

need use query: { $select: [data.email, data.username] },