Skip to content

Error 'Couldn't find the selector' when changing properties order in findAllLive #32

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

Open
timaschew opened this issue Jan 14, 2014 · 1 comment

Comments

@timaschew
Copy link

I'm using docpad 6.59 and node 0.10.12

If I define this collection

pages: (database) ->
    database.findAllLive({relativeOutDirPath:/de[\/\\]\w+/, pageOrder: $exists: true})

it works, but when I change the order, it fails:

pages: (database) ->
    database.findAllLive({pageOrder: $exists: true, relativeOutDirPath:/de[\/\\]\w+/})

Error:

error: An error occured: 
Error: Couldn't find the selector relativeOutDirPath
    at Query.compileSelector (./node_modules/docpad/node_modules/query-engine/out/lib/query-engine.js:1492:15)
@protometa
Copy link

I just got this error while trying to manipulate the query object as well.

Though you might try:

pages: (database) ->
    database.findAllLive({pageOrder: { $exists: true }, relativeOutDirPath:/de[\/\\]\w+/})

The Coffeescript shorthand might be messing things up.

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

No branches or pull requests

3 participants