laravellaravel-5graphqllighthouselaravel-lighthouse

How can I pass params at access point of GraphQL such as {url}/graphql?development=true by using lighthouse in laravel


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


Solution

  • 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.