forked from DebaucheryLibrarian/traxxx
Added database structure for profiles and tattoos. Improved sidebar appearance. Expanded new actors module.
This commit is contained in:
@@ -11,14 +11,14 @@ const schemaExtender = makeExtendSchemaPlugin(_build => ({
|
||||
IMPERIAL
|
||||
}
|
||||
|
||||
extend type Actor {
|
||||
extend type ActorProfile {
|
||||
age: Int @requires(columns: ["birthdate"])
|
||||
height(units:Units): String @requires(columns: ["height"])
|
||||
weight(units:Units): String @requires(columns: ["weight"])
|
||||
}
|
||||
`,
|
||||
resolvers: {
|
||||
Actor: {
|
||||
ActorProfile: {
|
||||
age(parent, _args, _context, _info) {
|
||||
if (!parent.birthdate) return null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user