Skip to content
This repository was archived by the owner on Jan 15, 2021. It is now read-only.
This repository was archived by the owner on Jan 15, 2021. It is now read-only.

how to use the find () method #64

@GlauberF

Description

@GlauberF

how to use the find () method

I'm going through this:

var meLigaService = $feathers.service('me-liga');

function buscarServicos (txt) {
            console.log(txt)

            meLigaService.find({query: {'mlig_nome': txt, 'mlig_email': txt}}).then(function (res) {              
              console.log(res)
            }).catch(function (err) {
              console.error(err)
            })
        }

(mlig_name) and (mlig_email) are two fields that I have in the database and (txt) is what the user is typing.

But regardless of what is typed, it returns all the same data from the database.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions