graphql-php/docs
Daniel Tschinder 06c6c4bd97 Validate schema root types and directives
This moves validation out of GraphQLSchema's constructor (but not yet from other type constructors), which is responsible for root type validation and interface implementation checking.

Reduces time to construct GraphQLSchema significantly, shifting the time to validation.

This also allows for much looser rules within the schema builders, which implicitly validate while trying to adhere to flow types. Instead we use any casts to loosen the rules to defer that to validation where errors can be richer.

This also loosens the rule that a schema can only be constructed if it has a query type, moving that to validation as well. That makes flow typing slightly less nice, but allows for incremental schema building which is valuable

ref: graphql/graphql-js#1124
2018-02-13 10:42:35 +01:00
..
type-system Update to match SDL changes 2018-02-11 13:27:26 +01:00
best-practices.md Moved Schema to GraphQL\Type namespace (but preserved BC) 2017-08-12 21:40:03 +07:00
complementary-tools.md Added graphql-upload to the list of complementary tools 2018-01-19 13:58:07 +07:00
concepts.md Documentation and docblock improvements 2017-08-20 16:00:44 +07:00
data-fetching.md Documentation improvements 2017-08-20 22:10:37 +07:00
error-handling.md Fixed typo in docs, see #185 2017-10-16 23:06:21 +07:00
executing-queries.md Documentation improvements 2017-08-20 22:10:37 +07:00
getting-started.md Documentation improvements 2017-08-20 22:10:37 +07:00
how-it-works.md Documentation improvements 2017-08-20 22:10:37 +07:00
index.md Minor docs improvements 2017-09-05 15:29:46 +07:00
reference.md Validate schema root types and directives 2018-02-13 10:42:35 +01:00
security.md Documentation improvements 2017-08-20 22:10:37 +07:00