Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IN not supported in where? #25

Closed
sdwebguy opened this issue Jul 12, 2018 · 3 comments
Closed

IN not supported in where? #25

sdwebguy opened this issue Jul 12, 2018 · 3 comments

Comments

@sdwebguy
Copy link

On the bottom of
https://github.com/jclausen/cbmongodb/wiki/2C.-Loading-and-Querying-Documents

it says
Valid operators currently include "=","!=","<",">",">=","<=","IN" and "Exists"

which should map IN to $in but I dont see that working anywhere.

ActiveEntity shows the valid operators are:

this.set_operators([
			'=',
			'!=',
			'>=',
			'<=',
			'<>',
			'like'
		]);

Is there a way to use IN or is that a documentation error?

@sdwebguy
Copy link
Author

I added IN to the set_operators and then in ActiveEntity.cfc where() added a case for it. Works now.

@jclausen
Copy link
Owner

Can you pull request your changes? I believe these were intended to be supported at one point, but were backed out due to query errors.

@sdwebguy
Copy link
Author

@jclausen Sure.. just issued #26

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

No branches or pull requests

2 participants