2024-06-03 05:20:15 发布
网友
使用节点中的Graphql,您可以在解析器之前使用中间件,或者在解析器之后使用中间件,例如使用Prisma
在Python中,使用Graphene,我只能找到一种在解析器之前使用中间件的方法
有没有办法在Python中的解析器之后使用中间件
那么:
class SomeMiddleware(object): def resolve(self, next, root, info, **args): next_node = next(root, info, **args) ...logic... return next_node
那么:
相关问题 更多 >
编程相关推荐