Home > OS >  How can I pass params at access point of GraphQL such as {url}/graphql?development=true by using lig
How can I pass params at access point of GraphQL such as {url}/graphql?development=true by using lig

Time:11-26

How can I pass params at access point of GraphQL such as {url}/graphql?development=true by using lighthouse in laravel. if development is true i want to use different database in laravel.

http://127.0.0.1:8000/graphql?development=true

its working but graphql does not getting development params

CodePudding user response:

HTTP and GraphQL are separate layers. The change you are describing has nothing to do with GraphQL, so standard Laravel methods such as middleware apply.

  • Related