We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If type of _id is set to be none-ObjectId type, the ExtractProps will still extract _id as ObjectId.
const AccountSchema = createSchema({ _id: Type.string({ require: true }), nickName: Type.string({ require: true }), ggSlug: Type.string({ require: true }), ggPlayerId: Type.string({ require: true }), gamerTag: Type.string({ require: true }), prefix: Type.string(), }); type AccountProps = ExtractProps<typeof AccountSchema>; type AccountProps = { **_id: Types.ObjectId;** nickName?: string | undefined; ggSlug?: string | undefined; ggPlayerId?: string | undefined; gamerTag?: string | undefined; prefix?: string | undefined; __v: number; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If type of _id is set to be none-ObjectId type, the ExtractProps will still extract _id as ObjectId.
The text was updated successfully, but these errors were encountered: