Commit Graph

684 Commits

Author SHA1 Message Date
Timo Heman b24d132d38
docs: change all "npm add" to "npm install" (#991) 2021-09-17 11:19:52 -04:00
Andrew McCallum e5658cadba
docs: Update 061-list-nonNull.mdx (#986)
Fixed syntax in docs where comma was missing
2021-09-07 09:07:05 -04: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 7e744aa0d3
refactor: Internal type cleanup (#980)
* refactor: Internal type cleanup
* chore: Remove prettier-plugin-jsdoc as its output is non-determinstic
2021-09-03 14:04:28 +00:00
Tim Griesser e65b5a7952
refactor: remove duplicate core schema type checks (#978) 2021-09-02 23:44:37 +00:00
Tim Griesser d4c6260774
feat: ability to rename root types (#976)
Closes #867
2021-09-02 09:38:16 -04:00
Gary Lamp 6de1cb6917
docs: Remove `.ts` extension from import statement (#974) 2021-09-02 09:20:54 -04:00
Tim Griesser 555ae79ded
fix: revert declareInputs default to false (#975) 2021-09-02 13:18:47 +00:00
Tim Griesser a003ff074f
fix: printer imports, follow up from #967 (#970) 2021-08-19 14:56:35 +00:00
Johannes Choo 855a482c54
fix: plugin inputFieldDefTypes (#919) 2021-08-18 14:50:09 -04:00
Tim Griesser 266f1a82ce
fix: add globalHeaders to imports for global def file (#969) 2021-08-17 20:15:49 -04:00
Tim Griesser 380ed9d4ca
fix: correct imports for changes in #967 (#968)
* fix: correct imports for changes in #967
2021-08-17 19:35:56 -04:00
Tim Griesser 5984ee122e
feat: ConfiguredTypegen for splitting global types & configuring input type emission (#967)
* feat: ConfiguredTypegen for splitting globals from other types
* default the declareInputs to true
2021-08-17 15:49:47 -04:00
Tim Griesser a914cc33d1
Revert "fix: #921 wrong typegen for nullable values w/ default (#965)" (#966)
This reverts commit 03b5ffd24a.
2021-08-17 13:50:36 -04:00
Tim Griesser 03b5ffd24a
fix: #921 wrong typegen for nullable values w/ default (#965)
* fix: #921 wrong typegen for nullable values w/ default

* refactor: make the conditional easier to follow
2021-08-04 10:59:50 -04:00
Tim Griesser 4531519e6c fix failing CI types 2021-07-21 12:19:17 -04:00
Tobias Lins 8e0ce1b4a1
chore(docs): improve scalar documentation (#939) 2021-06-25 13:42:06 -04:00
Jason Kuhrt df7d1370f9
feat: field config with name (#938) 2021-06-23 16:27:02 -04:00
Anton Lukin ebcdb29a3e
chore(docs): Fix a typo in JSDoc example (#937) 2021-06-21 08:20:39 -04:00
Tim Griesser 81ec5c0f08
fix: Allow meta types to be wrapped with null/list (#935) 2021-06-19 13:36:07 -04:00
Tim Griesser 2b0708d675
refactor: TO_NEXUS -> NEXUS_TYPE / NEXUS_BUILD (#934) 2021-06-16 08:42:44 -04:00
Tim Griesser 2759c551c7
feat: TO_NEXUS symbol for adding types via metaprogramming (#932) 2021-06-14 17:37:30 -04:00
Nenad Filipovic 10ea65f6f1
chore(docs): add formatTypegen example (#930) 2021-06-11 17:47:21 -04:00
Tim Griesser 690abb7299
fix: correct edge node typing (#876) 2021-06-10 07:49:34 -04:00
Tim Griesser 2e1c32b794
refactor: move makeSchema into separate file from builder (#927) 2021-06-09 11:40:53 -04:00
Tom Sherman 3a92760058
feat: Accept `ReadonlyArray<T>` for enum members (#916) 2021-05-25 19:36:07 -04:00
Philipp Strathausen 031c77257a
chore(docs): Fix prisma link in examples README (#912) 2021-05-25 19:32:31 -04:00
Tom Sherman 31a6137f90
Fix graphql docs link for interfaces (#913) 2021-05-22 12:53:16 -04:00
Jan Piotrowski 571fa4d124
docs(README): Add link to GH Actions 2021-05-20 22:00:43 +02:00
Jan Piotrowski 145f664914
chore(tests): update snapshots that were forgotten in #887 (#910) 2021-05-20 15:01:42 -04:00
Thilllon 189a5becb7
chore(docs): fix proper variable name (#904)
Change the variable name appropriately in the example code
https://nexusjs.org/docs/api/query-field
2021-05-12 08:23:22 -04:00
ahmedosama7450 70eda57c61
chore(docs): nexus nullability defaults (#900) 2021-04-30 15:41:05 -04:00
AstroAsh 7ff557b6e7
fix: sync should gen artifact logic with what docs say(#884) 2021-04-15 19:37:01 -04:00
Harsh Singh 5844b7fa74
chore(docs): update API link to Prisma object modeling (#890) 2021-04-15 19:35:55 -04:00
Alex Ruheni cfff794306
updated test script and server start (#882) 2021-04-13 22:35:34 -04:00
Nikolay Lanets d2e586bd3f
refactor: make errors more readable (#887) 2021-04-12 10:02:00 -04:00
ahmed osama 7b84cd63db
chore(docs): broken link (#881) 2021-04-08 20:01:32 -04:00
ahmed osama 3c18d6c1e3
chore(docs): Nexus nullability defaults to that everything is null by default 2021-04-08 09:30:18 -04:00
Max Leon 3f05c1d0ea
Resolve bullet indentation issue (#879)
fixes #849
2021-04-07 09:34:10 -04:00
Yash 16ac615f9b
chore(docs) Fix Broken Link in Tutorial Chapter 2 (#877)
Fixes the issue #858
2021-04-02 15:13:12 -04:00
Alex Ruheni 9a3915e11c
chore(docs): updated prisma references (#874) 2021-04-01 08:49:00 -04:00
ZC ce1bd8c594
chore(docs): fix typo in abstract types documentation (#873) 2021-03-28 21:58:25 -04:00
Tim Griesser 74c93e2ce4
refactor: add importsNotUsedAsValues: error to force import type (#872) 2021-03-27 16:26:13 -04:00
Renato Benkendorf a59273de88
docs(content of API to makeSchema): update the example of using a custom typing to GraphQL context value (#871) 2021-03-25 07:51:25 -04:00
Alex Ruheni 5056129b40
chore(docs): removed databaseUrl in final code sample testing (#863) 2021-03-15 21:34:18 -04:00
Nil Portugués Calderó c89c72bda2
chore(docs): Change --transpileOnly to --transpile-only from star-wars example (#859)
* Change --transpileOnly to --transpile-only
2021-03-15 07:40:41 -04:00
Alex Ruheni 3050c3bb42
chore(docs): Updated getting started tutorial (#852)
- migrated from postgres to sqlite
-fixed tests 🤞🏽
2021-03-04 14:25:18 -05:00
Tim Griesser 7f16b8b750
fix: cast NexusNonNullDef to prevent union type complexity error (#846) 2021-03-04 14:24:29 -05:00
Anton Niklasson 291e86a669
chore(docs): fix broken link in 070-make-schema.mdx (#851) 2021-03-03 12:58:48 -05:00