router.py 文件源码

python
阅读 36 收藏 0 点赞 0 评论 0

项目:falcon-graphene 作者: bendemaree 项目源码 文件源码
def from_schema(cls, schema: graphene.Schema) -> "GrapheneRouter":
        """Create a router with a Graphene schema.

        Args:
            schema: A :class:`graphene.Schema` instance.

        Returns:
            A :class:`.GrapheneRouter` set up with the given schema.
        """
        router = GrapheneRouter()
        return router.with_schema(schema)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号