Session.sessionType is a StringProperty(repeated=True)
When I do this query:
sessions_no_type = Session.query(Session.sessionType == request.sessionType)
everything seems to be working and I get only those sessions who have request.sessionType in them
but when I try:
sessions_no_type = Session.query(Session.sessionType != request.sessionType)
I get back all sessions (regardless of request.sessionType)
What might be the problem for this? Even docs have a similar example but it does not work for me.
The same goes when trying this version:
filter = ndb.query.FilterNode("sessionType", "!=", request.sessionType)
when tested for equality it returns everything correctly, but inequality case ONLY eliminates Session objects which have ONE sessionType which is equal to the passed(request) sessionType