Closed OmarAlkadri closed 10 months ago
@daffl @marshallswain @vonagam @FossPrime @ekryski @DaddyWarbucks
Hello, we have been using feathersjs for a long time and now we want to move to feathersjs V 5, but I am now creating an experiment project and I am facing a lot of problems. The most important of which is that I cannot create a reference from the same service I am having problems sending parameters to the hooks I created Can you please suggest me some solutions?
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.