Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Docs on query interface #131

Open
shaneodonnell opened this issue Aug 21, 2013 · 6 comments
Open

Docs on query interface #131

shaneodonnell opened this issue Aug 21, 2013 · 6 comments

Comments

@shaneodonnell
Copy link

If you could provide a few examples, it would be helpful. I've done a lot of .find()s via the mongo command line interface, and even with a cut and paste, can't get them to work in the Genghis search box.

I looked around and couldn't find any examples or docs otherwise.

If you can get me unblocked, I'd be happy to write some up myself, but I'm throughly stuck.

Thanks.

@bobthecow
Copy link
Owner

It's just the guts of the find(), i.e.

{foo: {$exists: 1}}

It also accepts ObjectIds as strings, to save you from writing

{_id: ObjectId("...")}

@henry74
Copy link

henry74 commented Aug 27, 2013

I am doing simple queries which do not return any results. For example:

{params:{db_coll:"rss"}}

All documents have a params field which points to a hash with a db_coll key.

Even simple queries return no results:
{params: {db_coll:{$exists:1}}}

@bobthecow
Copy link
Owner

@henry74 That's strange. What browser, browser version, genghis version, backend, backend version, mongo version, and mongo driver version are you using? Are you seeing any errors in your browser's JS console?

@henry74
Copy link

henry74 commented Aug 27, 2013

No javascript errors
Genghis 2.3.8 running on Ruby
MongoDB shell version: 2.4.6
Chrome Version 29.0.1547.57

GIT
remote: https://github.com/bobthecow/genghis.git
revision: 156acfb
specs:
genghisapp (2.3.8)
json (>= 1.7.0, < 1.9.0)
mongo (>= 1.8.0, <= 1.9.0)
sinatra (>= 1.3.3, < 1.5.0)
sinatra-contrib (>= 1.3.1, < 1.5.0)
sinatra-mustache (>= 0.0.4, < 0.2.0)
vegas (~> 0.1.8)

mongo (1.9.0)
  bson (~> 1.9.0)

@bobthecow
Copy link
Owner

Those look a lot like the version numbers I have, which are working for me. What Ruby version are you running?

@henry74
Copy link

henry74 commented Aug 28, 2013

Ruby 1.9.3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants