-
How can I get the schema of an entity in middleware? I don't know what type the entity is. |
Beta Was this translation helpful? Give feedback.
Answered by
edobrb
Jun 2, 2022
Replies: 1 comment
-
It's something like this: before: async (args, context) => {
const schema = context.schema //this is the schema of the entity that is executing the middleware
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Atlinx
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's something like this: