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
Jason Kuhrt
df7d1370f9
feat: field config with name ( #938 )
2021-06-23 16:27:02 -04:00
Tim Griesser
74c93e2ce4
refactor: add importsNotUsedAsValues: error to force import type ( #872 )
2021-03-27 16:26:13 -04:00
Flavian Desverne
de832e79ca
feat: replace list & nullable API by type wrappers ( #538 )
...
This PR removes the `nullable: boolean` and `list: boolean | boolean[]` API and replaces it with top-level type wrappers named: `list()`, `nonNull()` and `nullable()`
2020-11-18 17:59:59 +01:00
Jason Kuhrt
083c1ad981
test: capture union too large error
2020-10-22 16:08:00 -04:00
Flavian Desverne
c7eff85edd
feat: output types & list items are now nullable by default ( #508 )
...
BREAKING CHANGE:
- output types are now nullable by default. Type! -> Type
- list items are now nullable by default. [Type!] -> [Type]
2020-09-30 15:53:48 +02:00
Jason Kuhrt
78af75686d
chore: format with prisma-labs prettier config ( #461 )
2020-07-01 23:42:06 -04:00
Jason Kuhrt
3156f9bc46
refactor(style): sort imports
2020-04-07 08:19:45 -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
Tim Griesser
9f4ab9d830
Improving code coverage ( #225 )
...
* Improving overall coverage
* Improve jest config
* Remove unused internal builder methods
* Prefer non-inline snapshots
2019-09-22 21:28:27 -04:00
Rutger Hendrickx
459f3cfff1
Allow enum backing types ( #142 )
...
* Allow enums to have backing types
* Update typeMatch regex references
* Ignore const enums for backing-types.
* Allow native TS enum as members config
* Allow const enum backing types
* Add assertValidName for enum keys
2019-06-05 08:55:07 -04:00
Tim Griesser
48bb3e92b0
Fix nested nullability
2019-03-18 11:10:57 -04:00
Tim Griesser
f1175c0c21
Add extendInputType ( #54 )
...
* Add extendInputType, fix #51
2019-02-22 17:29:01 -05:00
Tim Griesser
faf4b6b3bb
Fix #33 ( #39 )
...
Fix #33 , consistent t.list syntax for scalars & input fields
2019-02-14 23:18:37 -05:00
Tim Griesser
7df52ef597
Fix nonNullDefaults, internal cleanup
2019-02-02 17:44:06 -05:00
Tim Griesser
f95ffc303a
Schema & type generation working again, need to cleanup the wrapping
2019-01-29 10:34:27 -05:00
Tim Griesser
9d2fd4bc05
Continuing to simplify internals
2019-01-28 12:56:34 -05:00