johnmartin / graphql-drupal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GraphQL integration for Drupal 8

Build Status

This module generates and exposes a GraphQL schema for all content entity types.

Project homepage: https://www.drupal.org/project/graphql

Contributing

For some time, development will happen on GitHub using the pull request model: in case you are not familiar with that, please take a few minutes to read the GitHub article on using pull requests.

There are a few conventions that should be followed when contributing:

  • Always create an issue in the drupal.org GraphQL issue queue for every pull request you are working on.
  • Always cross-reference the Issue in the Pull Request and the Pull Request in the issue.
  • Always create a new branch for every pull request: its name should contain a brief summary of the ticket and its issue id, e.g readme-2276369.
  • Try to keep the history of your pull request as clean as possible by squashing your commits: you can look at the Symfony documentation or at the Git book for more information on how to do that.

Executing the automated tests

This module comes with PHPUnit tests. You need a working Drupal 8 installation and a checkout of the GraphQL module in the modules folder.

cd /path/to/drupal-8/core
../vendor/bin/phpunit ../modules/graphql/tests/src/Unit
../vendor/bin/phpunit ../modules/graphql/tests/src/Integration

You can also execute the test cases from the web interface at /admin/config/development/testing.

About


Languages

Language:PHP 88.0%Language:JavaScript 11.9%Language:CSS 0.1%Language:HTML 0.0%