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
from

Conversation

Projects
None yet
2 participants
@Manit1
Copy link
Contributor

commented May 21, 2019

Fixes #19

@Manit1 Manit1 referenced this pull request May 21, 2019

Open

Feature: Tags Support #20

@abhishek97

This comment has been minimized.

Copy link
Member

commented May 23, 2019

@Manit1

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

This comment has been minimized.

Copy link
Contributor Author

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
You can’t perform that action at this time.