How do I add a new attribute to a schema already in use?


#1

The title says it all, but how do I do this?


#2

Hi @hashitani

Just write and load a new file containing the information you want to add. Say you want to add a new birth-date attribute to your schema:

define
birth-date sub attribute datatype date;

person has birth-date;

you can also do it via the console. Just be sure to define both lines before committing.


#3

Thank you, miko.

It worked well.

I added Japanese labels for pokemon and pokemon-type entities.
pokemon_jp_patch.gql (16.9 KB)

I will build a Pokemon Bot and share with Japan.

Regards,
Shin Hashitani