Commit Graph

11 Commits

Author SHA1 Message Date
Tim Griesser 0d06f26b12
feat: add GraphQL 16 support (#977) 2022-02-17 12:47:40 -05:00
Tim Griesser 333dfb8757
feat: Add mergeSchema, better graphql-js interop (#983)
- Adds a new feature mergeSchema to the makeSchema config, to consume an external schema and merge with the locally defined Nexus types
- Standardizes the consumption of external GraphQLNamedType's so they are converted into Nexus type definitions, simplifying code paths
- Order of resolution goes from local Nexus types -> graphql-js types -> external schema types
- Adds asNexusMethod to all types, allowing for any commonly used types to be used as methods, not just scalars
- Convert methods / properties from protected -> private in Builder to better detect unused code
2021-09-06 09:32:43 -04:00
Tim Griesser 02a73b5d74
refactor: More internal cleanup (#981)
- Add Maybe on resolveType to match GraphQL signature
- Don't create placeholder Query type when renamed
- Internal rename rootTypings -> sourceTypings
2021-09-03 17:00:35 +00:00
Tim Griesser d4c6260774
feat: ability to rename root types (#976)
Closes #867
2021-09-02 09:38:16 -04:00
Tim Griesser 50bf2981e7
feat(epic): 0.12.0 Plugin System and Internal Refactor (#242)
See #242 for a full summary
2019-11-07 16:39:33 -05:00
Jason Kuhrt 573096eff9 fix(typegen): correct default typegen @types path! 2019-10-07 21:51:44 -04:00
Jason Kuhrt 80f1e69f9e chore: fix tests 2019-10-07 21:39:42 -04:00
Jason Kuhrt eb963da09e
feat(config): env var for should-generate-artifacts (#244)
This allows setting the `shouldGenerateArtifacts` config option by env var `NEXUS_SHOULD_GENERATE_ARTIFACTS`
2019-10-07 20:59:15 -04:00
Jason Kuhrt 9ceb53216a
feat(typegen): nicer generated package name (#248)
* feat(typegen): nicer generated package name

This can impact the end-user when they, for example, are using the `types` TS compiler option. In that situation, expressing a whitelist of TypeScript type-packages, in a Nexus app, it would be important that the user also include typegen or else tsc would stop seeing it (forcing the
user to do Nexus typegen config). To make it easier for users to do that, this change allows them refer to a pretty name, rather than something hard to predict, remember, and ugly looking.
2019-10-07 20:51:28 -04:00
Jason Kuhrt 10f5198021
refactor: clean up config processing & tests (#246)
* refactor: clean up config processing & tests

* refactor
2019-10-04 11:09:22 -04:00
Jason Kuhrt aa41026438 fix(config): correct default output paths 2019-10-03 20:34:11 -04:00