Skip to content

metadata property types #85

@pcostell

Description

@pcostell

Right now the metadata describes a property type (string, int, etc) as a kind. This is a little overloaded with the concept of a Kind in datastore. Perhaps these could all be called type instead? Then metadata would look like:

registerKind('namespace', 'Author', {
    name: { type: STRING, indexed: false },
    tags: { type: STRING, multi: true }, // an array of string elements.
    favArticles: { type: KEY, multi: true }
    contact: {
        kind: {
          telephone: { type: STRING },
          email: { type: STRING }
        }
    }
});

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.api: datastoreIssues related to the Datastore API.triage meI really want to be triaged.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions