Skip to content

Commit

Permalink
documentation of schema constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
leebyron committed May 6, 2016
1 parent 2ac41f6 commit 88cf354
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/type/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@ import { isEqualType, isTypeSubTypeOf } from '../utilities/typeComparators';
* mutation: MyAppMutationRootType
* });
*
* Note: If an array of `directives` are provided to GraphQLSchema, that will be
* the exact list of directives represented and allowed. If `directives` is not
* provided then a default set of the built-in `[ @include, @skip ]` directives
* will be used. If you wish to provide *additional* directives to these
* built-ins, you must explicitly declare them. Example:
*
* directives: [
* myCustomDirective,
* GraphQLIncludeDirective,
* GraphQLSkipDirective
* ]
*
*/
export class GraphQLSchema {
_queryType: GraphQLObjectType;
Expand Down

0 comments on commit 88cf354

Please sign in to comment.