You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+58Lines changed: 58 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,6 +97,64 @@ You think that is to much code?
97
97
I don't think so, because by default internally was created about 55 graphql types (for input, sorting, filtering). So you will need much much more lines of code to implement all these CRUD operations by hands.
98
98
99
99
100
+
FAQ
101
+
===
102
+
### Can I get generated vanilla GraphQL types?
103
+
```js
104
+
constUserTC=composeWithMongoose(UserModel);
105
+
UserTC.getType(); // returns GraphQLObjectType
106
+
UserTC.getInputType(); // return GraphQLInputObjectType, eg. for args
107
+
UserTC.get('languages').getType(); // get GraphQLObjectType for nested field
108
+
UserTC.get('fieldWithNesting.subNesting').getType(); // get GraphQL type of deep nested field
When we convert model `const UserTC = composeWithMongoose(UserModel, customizationOptions);` you may tune every piece of future derived types and resolvers.
0 commit comments