This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!

niana varma

Greenhorn
+ Follow
since Jan 17, 2019
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by niana varma

Leverage the growing demand for RPA software Development professionals by joining the CourseJet's expert-designed Blue Prism Training. In this Blue Prism online Course, you will learn the key concepts of Blue Prism right from the basics to advanced level with industry use-cases to simplify the learning process. Our industry expert trainers will cover all the fundamental concepts that include and many more. Besides, our Blue Prism online training even makes you work on real-time projects and case studies to gain practical experience and help you to clear the Blue Prism Certification exam. Become one of the top IT professionals by getting enrolled in CourseJet's Blue Prism Online Training.

Schedule and Attend Free Demo here! CourseJet Blue Prism Training

Key Features:

Flexible Schedule
Certification & Job Assistance
Multiple Training Delivery Models
100% Job Oriented Training
24/7 Support
Hands-On Experience
Real-Time Use Cases
Instructor-Led Sessions
Expertise Faculties
Lifetime Access

About CourseJet:

CourseJet is one of the emerging online education platforms. We are the fastest growing platform with the highest course completion rate in the online education segment. CourseJet has partnered with major companies across the globe to skill up their workforce on evergrowing technologies.

For information please visit our website:-

https://coursejet.com/
https://coursejet.com/blue-prism-training/
To Attend Free Demo (Or) for any Queries Write to us at
info@coursejet.com(or) Call us on
+91 99944 08109
2 weeks ago

I have a simple document in mongo with name User. In this document i have a field(userRoles), which contains user roles, it's array(like ["ADMIN", "SUPER_ADMIN", "USER"]).

I'm using mongo compas, and I have created simple request with a filter to find some users:

db.getCollection('user').find({userRoles: {$elemMatch: {$in: ["ADMIN", "SUPER_ADMIN"]}}})

How can I do it on Java?
1 year ago