<commit_before># class Schema

Defines GraphQLSchema.

## Usage

A miniaml example of Schema usage:

```js
import {GraphQLString as TString} from "graphql"

import Schema from "parasprite"

const schema = Schema()
  .query("Query")
    .resolve({
      name: "hello",
      type: TString,
      required: true,
      noArgs: true,

      handler: () => "Hello, World!"
    })
  .end()
.end()
```

Equivalent of the above code in GraphQL SDL:

```gql
type Query {
  hello: String!
}

schema {
  query: Query
}
```

## API

### `constructor([options]) -> {Schema}`

- **{object}** options – options to use in GraphQLSchema constructor
- **{GraphQLObjectType | GraphQLObjectType[]}** options.types – a set of GraphQLObjectType

### Instance methods

#### `query(name[, description]) -> {Type}`

Define Query with given name and description.

- **{string}** name – Name for root Query type<commit_msg>Small fix for Schema docs.<commit_after># class Schema

Defines GraphQLSchema.

## Usage

A miniaml example of Schema usage:

```js
import {GraphQLString as TString} from "graphql"

import Schema from "parasprite"

const schema = Schema()
  .query("Query")
    .resolve({
      name: "hello",
      type: TString,
      required: true,
      noArgs: true,

      handler: () => "Hello, World!"
    })
  .end()
.end()
```

Equivalent of the above code in GraphQL SDL:

```gql
type Query {
  hello: String!
}

schema {
  query: Query!
}
```

## API

### `constructor([options]) -> {Schema}`

- **{object}** options – options to use in GraphQLSchema constructor
- **{GraphQLObjectType | GraphQLObjectType[]}** options.types – a set of GraphQLObjectType

### Instance methods

#### `query(name[, description]) -> {Type}`

Define Query with given name and description.

- **{string}** name – Name for root Query type
{'fraction_non_alphanumeric': 0.14933628318584072, 'fraction_numerical': 0.0, 'mean_word_length': 3.6384615384615384, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2521571', 'n_tokens_mistral': 591, 'n_tokens_neox': 575, 'n_words': 197}