Skip to content

How does Typetta achieve typing for it's security middleware? #231

Answered by edobrb
Atlinx asked this question in Q&A
Discussion options

You must be logged in to vote

It's a mix of both. Some types are generated in order to complete the various DAOGenerics, then these are used by Typetta.

This is inside the generated code:

type UserRoleDAOGenerics<MetadataType, OperationMetadataType> = T.MongoDBDAOGenerics<
types.UserRole,
'id',
'ID',
UserRoleFilter,
UserRoleRawFilter,
UserRoleRelations,
UserRoleProjection,
UserRoleSort,
UserRoleRawSort,
UserRoleInsert,
UserRoleUpdate,
UserRoleRawUpdate,
UserRoleExcludedFields,
UserRoleRelationFields,
MetadataType,
OperationMetadataType,
types.Scalars,
'use…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Atlinx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants