Forum Discussion

keithkelly's avatar
2 years ago

Select messages where user *doesn't have* FooBar role?

Objective:  Create message list of messages posted by non-employees. 

SELECT yada, yoda 
FROM messages 
WHERE depth = 0 
  ** AND USER DOESN'T HAVE EMPLOYEE ROLE ** 
ORDER BY conversation.last_post_time LIMIT 100

 

From the LiQL reference, I don't see a constraint that will allow this.  Is this possible?

  • This is possible but there is no direct API for this. But there will be performance issues too if we go with other way.