Closed erlonbie closed 11 months ago
Sorry, the book is under construction right now and part of it was making name required for Person, which makes it required for Crewman as well. Must have pushed that change to main before making the current changes to Crewman which you can see on this branch that I'm currently working on:
https://github.com/edgedb/easy-edgedb/blob/self-review/chapter8/index.md
Now it automatically assigns them a name so the insert still doesn't need to specify a name but they receive one anyway:
type Crewman extending HasNumber, Person {
overloaded name: str {
default := 'Crewman ' ++
If you don't mind working on a branch as opposed to the shiny final product I would recommend moving to that since I am doing a lot of tying up loose ends together and adding extra info.
Thanks for the response, foremost I just wanted to make sure I wasn't mistaking anything. I'll check the self-review branch as well.
The self-review branch is merged so will close this now.
Since
Crewman
inherites fromHasNumber
andPerson
, andPerson
has arequired delegated
property, it would make sense to be needed when in inserting a newCrewman
(figure 1), but the tutorial tells us that it doesn't need a name (figure 2).Am I doing something wrong? I'm pretty sure I followed every step of the guide.
Im using:
My default schema: