How to create view by using Node.js SDK

Hello,

Is there a way to create view by using Node,js SDK?

Thanks.

1 Answer

« Back to question.

Hello,

You have a setDesignDocument() method.

You can find a complete example in the beer sample application, in this script:
https://github.com/couchbaselabs/beersample-node/blob/master/beer_design...

Regards
Tug
@tgrall

Thank you, Tug!

PS: I still have the 'Operation timed out' error in another post.
http://www.couchbase.com/communities/q-and-a/nodejs-sdk-operation-timed-...

Thanks!