Skip to content

Commit

Permalink
Another typo (gatsbyjs#10793)
Browse files Browse the repository at this point in the history
* Another typo

* Update schema-input-gql.md
  • Loading branch information
iadityavs authored and shannonbux committed Jan 4, 2019
1 parent 2a50285 commit 4230cfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/docs/schema-input-gql.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Plugins themselves have the opportunity to create custom fields that apply to AL
}
```

Plugins add custom fields by implementing the [setFieldsOnGraphQLNodeType](/docs/node-apis/#setFieldsOnGraphQLNodeType) API. They must return a full GraphQLObjectType, complete with `resolve` function. Once this API has been run, the fields are passed to [inferInputObjectStructureFromFields](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/schema/infer-graphql-input-fields-from-fields.js#L195), which will generate input filters for thew new fields. The result would look something like:
Plugins add custom fields by implementing the [setFieldsOnGraphQLNodeType](/docs/node-apis/#setFieldsOnGraphQLNodeType) API. They must return a full GraphQLObjectType, complete with `resolve` function. Once this API has been run, the fields are passed to [inferInputObjectStructureFromFields](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/schema/infer-graphql-input-fields-from-fields.js#L195), which will generate input filters for the new fields. The result would look something like:

```javascript
{ //GraphQLInputObjectType
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/schema-sift.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Gatsby stores all data loaded during the source-nodes phase in Redux. And it all

The answer is that it uses the [sift.js](https://github.com/crcn/sift.js/tree/master) library. It is a port of the MongoDB query language that works over plain JavaScript objects. It turns out that mongo's query language is very compatible with GraphQL.

Most of the logic below is in the the [run-sift.js](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/schema/run-sift.js) file, which is called from the [ProcessedNodeType `resolve()`](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/schema/build-node-types.js#L191) function.
Most of the logic below is in the [run-sift.js](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/schema/run-sift.js) file, which is called from the [ProcessedNodeType `resolve()`](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/schema/build-node-types.js#L191) function.

## ProcessedNodeType Resolve Function

Expand Down

0 comments on commit 4230cfa

Please sign in to comment.