incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Uvarov <alexander.uva...@gmail.com>
Subject Re: pseudo types ?
Date Thu, 13 May 2010 10:31:09 GMT
1. Use _update handler http://www.mikealrogers.com/archives/737
2. Use http://books.couchdb.org/relax/design-documents/validation-functions

On 13.05.2010, at 16:05, c.Kleinhuis wrote:

> hello all again,
> 
> next thing i would like to ask is:
> 
> is there a way that "default fields" for a given type can be stored somewhere ?
> 
> i know that couchdb is type free, but for example a blog post should have the fields
> "title", "author","body" which are mandatory for a blog document, is that only decided
> by my application ? e.g. by hard coding the 3 form elements and store them in a db ?
> 
> i think of a system like,
> - i would create a new blog post
> - give me the required fields
> - automatically generate default formular
> - allow additional fields
> - save it as blog post
> 
> thx
> ck
> 


Mime
View raw message