Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tag models done #20

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

tag models done #20

wants to merge 4 commits into from

Conversation

Manit1
Copy link
Contributor

@Manit1 Manit1 commented May 21, 2019

Fixes #19

@abhishek97
Copy link
Contributor

@Manit1

  • Saving Tags on questions doesn't work.
  • We don't allow deleting tags

@Manit1
Copy link
Contributor Author

Manit1 commented May 23, 2019

Hey @abhishek97,
I fixed the issue with saving tags on questions and removed the delete route but still not able to figure how can I implement filtering with tags.

Basically I need to do something like

DB.questions.findOne({
    where: {
        id: 1,
    },
    include: {
        model: DB.tags,
        where: {
            name: {
                $iLike: '%something%'
            }
        },
        required: false
    }
}).then(o => console.log(o.tags))

to filter this but not able to think of how to integrate this in base controller

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: Add tags support
2 participants