Hello!
We are happy you consider using this library.
This documentation relates to the GraPHPinator project - the PHP implementation of GraphQL server. Before you continue, make sure to understand the concepts of GraphQL and its purpose. All the necessary information is presented on the official website.
Version 2.0 introduces several important changes. Please review these if you are upgrading from an earlier version:
validateAndCoerceInput(mixed $rawValue) : mixed - replaces the old validateNonNullValue method for input validationcoerceOutput(mixed $rawValue) : string|int|float|bool - new method for output coercionvalidateNonNullValue method has been removedSome classes have been moved to different namespaces. Please check your imports if you encounter class-not-found errors after upgrading.
For detailed migration instructions, see the Migration Guide.
This library aims at the latest draft of the GraphQL specification. The current version supports all the features and is ready to be used in real-world applications.
Known incompatibilities can be found in issues with “Spec incompatibility” label. Those deviations from specification should not affect your application in any way, but are listed anyway for full transparency.
This section includes some general information about the library and how to use it but does not go deep into unnecessary detail.
If you prefer to read less text and more code - check out the Examples
Information about unofficial extensions this library provides.
Information about internal components, which may be used as standalone tools.