Commit Graph

157 Commits

Author SHA1 Message Date
Tim Griesser ad9b19184d Bugfixes:
- Fix MaybePromise implementation
- Expose AllInputTypes, AllOutputTypes, FieldType
- Fix conditional null checking for NeedsResolver
2019-01-31 17:38:35 -05:00
Tim Griesser 28bfb96720 ScalarType asNexusMethod 2019-01-31 10:09:31 -05:00
Tim Griesser 76c1380cd3 Type extension working 2019-01-30 18:11:58 -05:00
Tim Griesser e822510ef2 Full type-safety complete 2019-01-30 17:46:19 -05:00
Tim Griesser 6c896e8aa3 No need to thread the NexusGen type through, it can be inferred at the root 2019-01-30 17:26:29 -05:00
Tim Griesser 320c6bfe7f Getting close, just need to finish up args 2019-01-30 16:22:53 -05:00
Tim Griesser 97258f7d2c Changing core exports to include everything 2019-01-29 11:33:54 -05:00
Tim Griesser 4ae853ec64 Restore the correct non-null default 2019-01-29 10:41:09 -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
Tim Griesser 672a62cb76 WIP 2019-01-27 20:37:09 -05:00
Tim Griesser a3e7353963 Merge branch 'replace-typegen' into extendType
* replace-typegen:
  Replacing the typegen
  v0.7.0-alpha.2
  Use types from /dist
2019-01-26 18:05:22 -05:00
Tim Griesser ebbe8d151b Replacing the typegen 2019-01-26 17:53:44 -05:00
Tim Griesser ccebe9f86d WIP 2019-01-26 16:00:53 -05:00
Tim Griesser 5f72c3d092 Considering some major API changes 2019-01-26 15:17:30 -05:00
Tim Griesser 263de2ea18 WIP on schema gen. Removing concept of directive for now to strip down API surface area 2019-01-26 14:27:59 -05:00
Tim Griesser b8d23c30f3 Various API cleanup, trying to simplify overall concepts 2019-01-21 14:29:30 -05:00
Tim Griesser bda93402e8
Inline resolver, full-type safety on fields
More features for #1
2019-01-19 12:41:23 -05:00
Tim Griesser ff7c5a4b8d Some README tweaks 2019-01-06 21:06:12 -05:00
Tim Griesser f856feb2e5 More general cleanup 2019-01-06 19:42:41 -05:00
Tim Griesser 9351538abd A bit of docs cleanup 2019-01-06 18:51:18 -05:00
Tim Griesser 008cc7ba6b Fix typegen for inputs, export the types & fix nullability 2018-12-13 09:45:58 -05:00
Tim Griesser b2a5534cbb Fix the regex for ts imports 2018-12-10 18:00:43 -05:00
Tim Griesser 8031fbae21 Renaming to nexus 2018-12-10 17:37:03 -05:00
Tim Griesser 6246ab39b4 Rebuild examples w/ graphql-nexus@0.1.0 2018-12-06 11:48:39 -05:00
Tim Griesser 08f060b8ea GraphQLiteral -> GraphQL Nexus 0.1.0 2018-12-06 11:35:59 -05:00
Tim Griesser f383204823 WIP on sdl converter 2018-12-06 09:09:03 -05:00
Tim Griesser afa95e1d9b Continue to improve the ts-ast example, going for practicality over type soundness 2018-12-03 14:11:22 -05:00
Tim Griesser 7bcd104b6c Add script to upgrade example versions 2018-12-01 17:28:41 -05:00
Tim Griesser 261a4ac7dc Types should be generated within /src 2018-12-01 16:57:08 -05:00
Tim Griesser 0d582f4ebf WIP on several new features:
- Auto typegen config
- TypeScript AST Reader Example
- Passing a function to typegen
2018-12-01 16:53:42 -05:00
Tim Griesser 5ccf3b1d67 Begin work on ast reader 2018-11-29 11:47:20 -05:00
Tim Griesser 13be2065d7 Drop the GraphQLiteral prefix from internal types
Remove the t.*Arg convenience methods, they
don't provide any benefit and just complicate the
api documentation
2018-11-27 11:45:50 -05:00
Tim Griesser 0f8c134a38
Update example links 2018-11-26 15:32:59 -05:00
Tim Griesser 930dcbade2 Add some docs, add *Arg methods to interfaceType 2018-11-26 10:12:05 -05:00
Tim Griesser 266f12084a Remove the concept of abstractType
It's generally unnecessary in JS (just use functions)
and both complicates the internals and loses
type-safety.
2018-11-26 10:11:39 -05:00
Tim Griesser 826305e42b Renaming GQLiteral -> GraphQLiteral 2018-11-26 08:51:33 -05:00
Tim Griesser 298bf5faec buildSchema -> makeSchema 2018-11-25 17:53:58 -05:00
Tim Griesser cd486f725b Bumping example dependency versions so they work 2018-11-21 08:48:17 -05:00
Tim Griesser 2b6ec64160 Typegen working decent enough, need to fix a few things 2018-11-21 08:44:17 -05:00
Tim Griesser 141ff2a387 Fix tests, update examples, add helpers for example scripts 2018-11-19 14:31:35 -05:00
Tim Griesser 2858d448e0 WIP on type generation overhaul 2018-11-18 15:06:28 -05:00
Tim Griesser 58759f5d92 Added simple playground, working on new type generation 2018-11-15 10:41:10 -05:00
Tim Griesser 36afd8aef5 Working on docs, fixing some config, etc 2018-11-13 10:36:41 -05:00
Tim Griesser 82effb501f Update dependencies 2018-11-13 08:16:39 -05:00
Tim Griesser 733759905a Some type fixes 2018-11-13 07:47:05 -05:00
Tim Griesser 70de0e1910 Type hint the backing types 2018-11-12 23:02:08 -05:00
Tim Griesser 1667eb10bf tslint, check name, nullability, requiredValue -> required 2018-11-12 22:19:04 -05:00
Tim Griesser 2b8b5c0902 Working through a directives api 2018-11-12 14:54:29 -05:00
Tim Griesser de2b00dd0e Working through the API with examples, type safety working pretty well 2018-11-11 16:20:30 -05:00
Tim Griesser 5b59ffd21d Pretty decent type coverage 2018-11-10 15:09:47 -05:00
Tim Griesser 224e19c5d4 Consolidating the type gen 2018-11-09 15:29:07 -08:00
Tim Griesser ba44e0e2a6 Basics working 2018-11-08 14:58:10 -08:00
Tim Griesser 446047a918 WIP 2018-11-08 09:04:48 -08:00
Tim Griesser 3d5387bcf1 WIP 2018-11-05 19:55:28 -05:00
Tim Griesser b4b1ed58f3 Renaming 2018-11-03 23:44:05 -04:00
Tim Griesser 86e7e5c26a Initial commit 2018-11-02 17:11:51 -04:00