在石墨烯中间件中访问节点的完整路径
我正在尝试使用中间件为石墨烯服务器添加一些日志记录。根据文档( a>),我可以通过从root的元节点(root._meta.name
)提取名称来查看父母的一些有限的路径信息,该名称将导致ex。three.four。 /code>),但我希望获得正在解决的当前节点的完整路径(
one.two.three.four.four
)。有什么方法可以通过中间件访问此信息?
I am trying to add some logging to my graphene server utilizing a middleware. As per the documentation (Docs - 3.2.3), I can view some limited path info from the parent by pulling out the name from the root's meta node (root._meta.name
which will result in Ex. Three.Four
), but I am looking to get the full path of the current node being resolved (One.Two.Three.Four
). Is there any way to access this info through the middleware?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

您可以使用
info.path
获得此功能。You can use
info.path
to get this.