Introduction to CouchDB with .NET part 15: show functions in design documents
June 16, 2017 1 Comment
Introduction
In the previous post we took a look at lists in CouchDB design documents. Lists operate in conjunction with views. A list function has access to the output of a view and can transform it into a different data set. Lists do not change the underlying data at all, they are a type of extension to views. A list can output simple JSON or advanced HTML for fancy reports. We have access to the HTTP request object within the list function. The output of a list function can thus depend on stuff like query parameters, request headers, cookies etc.
In this post we’ll look at another function type in design documents called show functions.