Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6350929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:54:15+00:00 2026-05-24T21:54:15+00:00

For an example, there is a group called A which is an array. And

  • 0

For an example, there is a group called “A” which is an array.

And there is another group called “B” which is inside of group “A” also an array.

I want to find and update group “B” elements.

I tried to query chain-like query like in jQuery.

db.collection.findOne({"group":"A"}).findOne({"society":"B"})

something like this..

but this does not work. But main point is that I want to query group elements in group.

Any suggestion on doing this?

If you give me advice especially with PHP implementation, it will be really helpful

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T21:54:16+00:00Added an answer on May 24, 2026 at 9:54 pm

    Maybe I am misunderstanding something, but what is wrong with:

    db.collection.findOne({"group":"A", "society":"B"})
    

    Also note that findOne only returns one document.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In lib\RT\CustomFieldValues\ there is the groups.pm file which is supposed to be an example
Is there an example of an OAuth implementation or profile which uses multiple authorization
There is a 2d array of items (in my case they are called Intersections
I find useful groups.google.com/group/comp.lang.prolog/topics cs.cmu.edu/afs/cs/project/ai-repository/ai/areas/ google.com/Top/Computers/Programming/Languages/Prolog/Implementations/ allisons.org/ll/Logic/Prolog/Examples/ prolog.info/ Maybe there are else useful links?
I will explain problem with an example: There is two table in my database,
At http://docs.jquery.com/UI/Tabs#Example there is a short HTML example of how to use JQuery UI
On the Groovy example page there is an example of how to use Groovy
I need to explain this by example: Is there a best practice or preference
Is a C# struct thread-safe? For example if there is a: struct Data {
Is there good example code or a test project for explaining the Model–view–presenter (MVP)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.