couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aurélien Bénel <>
Subject Re: Return web request via GET with a specific format
Date Fri, 05 May 2017 05:23:32 GMT
Hi Noel,

> "error":"compilation_error","reason":"Expression does not eval to a function.

We could analyse the JSON manually, but as your application will get bigger,
it will become more and more complex.
As I wrote earlier, I recommend you to use a tool like couchapp (

The idea is to convert a folder with subfolders and files into a design document.
In your case it would be something like: 

- doc / 	(weird name for a design document…)
  - views
    - map
      - nv.js
  - lists
    - lightning.js

Documentation is there:

Note that, with couchapp, you are not obliged to generate a complete « app », but maybe
it’s easier to begin with.


View raw message