Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Dynamic conditions in views #61

Closed
aL3xa opened this Issue · 2 comments

2 participants

@aL3xa

Sorry for n00bish question, but I'd like to pass dynamic values to views via view definition in model. Something like:

view :completed, :key => :name, :conditions => "doc.completed === #{var}"

Is it at all possible, or should I stick with filters I wrote in JS?

@langalex
Owner

Well, if you mean dynamic as in at query time then no, that's impossible with CouchDB. The conditions must be set at "compile time".

@aL3xa

Yeah, silly me. Sry for bugging you.

@aL3xa aL3xa closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.