File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -15,3 +15,17 @@ It really depends on various factors:
1515### Should I use array of manually imported resolver classes or use a glob path string?
1616Using path to resolver module files force you to structure yours project folders or constantly name files with prefix/suffix.
1717When you have several dozen of resolver classes, it might be easier than always remember about importing and registering each new class.
18+
19+ ## Types
20+
21+ ### Is ` @InputType() ` different from ` @ArgsType() ` ?
22+ Of course!
23+ ` @InputType ` will generate real ` GraphQLInputType ` and should be used when you want to have nested object in args:
24+ ``` graphql
25+ updateItem (data : UpdateItemInput ! ): Item !
26+ ```
27+
28+ ` @ArgsType ` is virtual and it will be flattened in schema:
29+ ``` graphql
30+ updateItem (id : Int ! , userId : Int ! ): Item !
31+ ```
You can’t perform that action at this time.
0 commit comments