andre
02/05/2018, 5:16 PMtype User {
id: ID! @unique
username: String! @unique
email: String! @unique
password: String!
salt: String!
profile: Profile
}
type Profile {
id: ID! @unique
firstname: String
lastname: String
about: String
}
The Profile
of the User
is not mandatory, but should be creatable when the user wants to add additional information. How would you model that? ๐max
02/05/2018, 5:19 PMtype User {
id: ID! @unique
username: String! @unique
email: String! @unique
password: String!
salt: String!
profile: Profile
}
type Profile {
id: ID! @unique
firstname: String
lastname: String
about: String
user: User!
}
max
02/05/2018, 5:20 PMuser: User!
to Profilemax
02/05/2018, 5:20 PMsalt
on user?max
02/05/2018, 5:20 PMandre
02/05/2018, 5:22 PMmax
02/05/2018, 5:22 PMandre
02/05/2018, 5:32 PMmax
02/05/2018, 5:32 PM