Skip to content

Instantly share code, notes, and snippets.

@RobAWilkinson
Last active September 9, 2016 21:35
Show Gist options
  • Save RobAWilkinson/9c7b6921c2374d07562398414d87b437 to your computer and use it in GitHub Desktop.
Save RobAWilkinson/9c7b6921c2374d07562398414d87b437 to your computer and use it in GitHub Desktop.

What i have so far

{
  $or: [
    { ax: 300 },
    { ax: 301 },
  ]
}

document schema is like

{ ax: [Number] }

Need a query to return these 2 things:

{ ax: [300, 100, 150, ...] }
}
{ ax: [300, 301, ...] }

but not these:

{ ax: [300, 302-319, ... ] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment