@@ -112,7 +112,7 @@ UserTC.get('fieldWithNesting.subNesting').getType(); // get GraphQL type of deep
112112``` js
113113UserTC .addFields ({
114114 lonLat: TypeComposer .create (' type LonLat { lon: Float, lat: Float }' ),
115- notice: ' String' , // shortand definition
115+ notice: ' String' , // shorthand definition
116116 noticeList: { // extended
117117 type: ' [String]' , // String, Int, Float, Boolean, ID, Json
118118 description: ' Array of notices' ,
@@ -141,7 +141,7 @@ UserTC.addRelation(
141141UserTC .addRelation (
142142 ' adultFriendsWithSameGender' ,
143143 () => ({
144- resolver: UserTC .get (' $findMany' ), // shortand for `UserTC.getResolver('findMany')`
144+ resolver: UserTC .get (' $findMany' ), // shorthand for `UserTC.getResolver('findMany')`
145145 args: { // resolver `findMany` has `filter` arg, we may provide mongoose query to it
146146 filter : (source ) => ({
147147 _operators : { // Applying criteria on fields which have
@@ -157,9 +157,9 @@ UserTC.addRelation(
157157 })
158158);
159159```
160- ### Reusing the same mongoose Schame in embedded object fields
160+ ### Reusing the same mongoose Schema in embedded object fields
161161Suppose you have a common structure you use as embedded object in multiple Schemas.
162- Also suppose you want the strcutre to have the same GraphQL type across all parent types.
162+ Also suppose you want the structure to have the same GraphQL type across all parent types.
163163(For instance, to allow reuse of fragments for this type)
164164Here are Schemas to demonstrate:
165165``` js
@@ -327,7 +327,7 @@ export type filterHelperArgsOpts = {
327327 onlyIndexed ?: boolean , // leave only that fields, which is indexed in mongodb
328328 requiredFields ?: string | string [], // provide fieldNames, that should be required
329329 operators ?: filterOperatorsOpts | false , // provide filtering fields by operators, eg. $lt, $gt
330- // if left empty - provides all oeprators on indexed fields
330+ // if left empty - provides all operators on indexed fields
331331};
332332
333333// supported operators names in filter `arg`
0 commit comments