[Developers] mql boolean constraint

Kurt Bollacker kurt at metaweb.com
Wed Jun 13 02:01:33 UTC 2007


On Tue, Jun 12, 2007 at 06:44:55PM -0700, Dae Park wrote:
> If I have a unique property (i.e., /type/foo/bar) who's expected type  
> is /type/boolean, does providing a "false" constraint on that  
> property also match those that have null values for that property.  
> For example:
> 
> [{
>    id: null,
>    type: "/type/foo",
>    bar: false
> }]
> 
> Will this give me all instances of /type/foo that has not yet set a  
> boolean value for the "bar" property?

No.  "false" (a positive assertion of falsehood) is different than no
assertion.

								Kurt :-)



More information about the Developers mailing list