You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "dsanchez31 (via GitHub)" <gi...@apache.org> on 2023/11/20 07:32:34 UTC

[I] help request: How to get graphql_root_fields value from a serverless-pre-function function ? [apisix]

dsanchez31 opened a new issue, #10523:
URL: https://github.com/apache/apisix/issues/10523

   ### Description
   
   Hi All,
   
   I want to write a function within a serverless-pre-function route plugin that needs to check the graphql_root_fields builtin var (as it is a graphql route).
   
   How can i access the value of graphql_root_fields var ?
   
   I've tried ctx.graphql_root_fields ngx.var.graphql_root_fields but none of them works.
   
   Thanks !
   
   ### Environment
   
   - APISIX version (run `apisix version`): 3.6.0
   - Operating system (run `uname -a`): Linux apisix-ddbcf45b-l8h8v 4.18.0-477.13.1.el8_8.x86_64
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`): nginx version: openresty/1.21.4.2
   - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: How to get graphql_root_fields value from a serverless-pre-function function ? [apisix]

Posted by "dsanchez31 (via GitHub)" <gi...@apache.org>.
dsanchez31 commented on issue #10523:
URL: https://github.com/apache/apisix/issues/10523#issuecomment-1818404373

   Ok I found it!
   Simply by using "ctx.var.graphql_xxx".
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: How to get graphql_root_fields value from a serverless-pre-function function ? [apisix]

Posted by "dsanchez31 (via GitHub)" <gi...@apache.org>.
dsanchez31 closed issue #10523: help request: How to get graphql_root_fields value from a serverless-pre-function function ?
URL: https://github.com/apache/apisix/issues/10523


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org