composer require drupal/graphqlto install the module and its dependencies. 2. Enable the module; it will generate a GraphQL schema for your site which you can immediately explore. ##Example Queries with Graph*i*QL Now that you have GraphQL installed, what can you do? How do you begin to write queries to explore your site’s content? One of the most compelling tools built around GraphQL is the explorer, called GraphiQL. This is included in the installation of the Drupal GraphQL module. Visit it at:
/graphql/explorerThe page is divided into left and right sides. At the left you can write queries. Running a query with the button in the top left will display the response on the right pane.
Skip to footer