-
-
Notifications
You must be signed in to change notification settings - Fork 795
Closed
Description
How can I create a userID whose reference is the same as users
i use feathersjs V5 and typeBox
export const usersSchema = Type.Object(
{
_id: ObjectIdSchema(),
email: Type.String(),
date: Type.String({ format: 'date' }),
password: Type.Optional(Type.String()),
userID: ObjectIdSchema(),
user: Type.Ref(usersSchema),
},
{ $id: 'Users', additionalProperties: false }
)
Block-scoped variable 'usersSchema' used before its declaration.ts(2448)
users.schema.ts(13, 14): 'usersSchema' is declared here.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels