[dojo-contributors] dojo.data Schema API

Bill Keese bill at dojotoolkit.org
Tue Aug 21 20:46:57 EDT 2007


>     schema == {
>          kinds: {
>              Country: {
>                  attributes: {
>                      ABBR: {type: 'String'},
>                      NAME: {type: 'String'}
>                  }
>              },
>              State: {
>                  attributes: {
>                      NAME: {type: 'String'},
>                      CODE: {type: 'String'},
>                      COUNTRY: {kind: 'Country'},
>                      POPULATION: {type: 'Number'}
>                  }
>              }
>          }
>      }


What's the COUNTRY field of State?  Is that a reference to a Country 
item?   Or the id of a Country item?

And if it's the former, how would you query for all states in the USA?



More information about the dojo-contributors mailing list