title: buildSchema is not a function graphql npm
body: <p>The <a href="http://graphql.org/code/#graphql-js-graphql-js-github-https-github-com-graphql-graphql-js-npm-https-www-npmjs-com-package-graphql" rel="nofollow noreferrer">official website of graphql</a> refers to this <a href="https://www.npmjs.com/package/graphql" rel="nofollow noreferrer">graphql npm</a> to create the helloworld . </p>
  
  <pre><code>var { graphql, buildSchema } = require('graphql');
  
  var schema = buildSchema(`
    type Query {
      hello: String
    }
  `);
  
  var root = { hello: () =&gt; 'Hello world!' };
  
  graphql(schema, '{ hello }', root).then((response) =&gt; {
    console.log(response);
  });
  </code></pre>
  
  <p>When i run  this file with <code>node</code> cmd , I got : </p>
  
  <blockquote>
    <p>var schema = buildSchema(`
                 ^</p>
    
    <p>TypeError: buildSchema is not a function
        at Object. (</p>
  </blockquote>
  
  <p>I guess the offcial website of graphql is not up-to-date with this repository , so , i tried to use <code>GraphQLSchema</code> instead of <code>buildSchema</code></p>
  
  <pre><code>var schema = GraphQLSchema(`
    ...
  `)
  </code></pre>
  
  <p>I go another error: </p>
  
  <pre><code>TypeError: Cannot call a class as a function
  </code></pre>
  
  <p>Thus , i called <code>new GraphQLSchema(...</code> instead of <code>GraphQLSchema(...</code></p>
  
  <p>I got another error : </p>
  
  <pre><code>Error: Must provide configuration object.
  </code></pre>
  
  <p>So  , what i did as next step, I explored the object and i filter functions contains <code>schema</code> in its name </p>
  
  <pre><code>const graphql = require('graphql');
  const functionsContainsSchema=  Object.keys(graphql).filter(e =&gt; e.toLowerCase().includes('schema') &amp;&amp; typeof graphql[e] ==='function');
  console.log(
     functionsContainsSchema
  ) 
  /* STDOUT
  [ 'GraphQLSchema',
    'buildClientSchema',
    'buildASTSchema',
    'extendSchema',
    'printSchema' ]
  
   */
  </code></pre>
  
  <p>What is the new version of <code>buildSchema</code> and what is its signature  ?</p>