Tim Griesser
4351a1d051
feat: Add connectionPlugin for relay style pagination ( #324 )
...
Adds `connectionsPlugin` for cursor style connections. These adhere to the Relay specification and offer plenty of options for customization:
https://facebook.github.io/relay/graphql/connections.htm
2020-01-22 20:17:17 -05:00
Tim Griesser
cd25998259
chore: Clarify ts-node example so it doesn't fail on run #327 ( #348 )
2019-12-04 07:43:10 -05:00
Tim Griesser
aa9a46fe48
chore(deps): Bump prettier to latest
2019-11-11 14:57:21 -05: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
dependabot[bot]
b0848370a8
chore(deps): bump knex from 0.16.3 to 0.19.5 in /examples/ghost ( #301 )
...
Bumps [knex](https://github.com/tgriesser/knex ) from 0.16.3 to 0.19.5.
- [Release notes](https://github.com/tgriesser/knex/releases )
- [Changelog](https://github.com/knex/knex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/tgriesser/knex/compare/0.16.3...0.19.5 )
Signed-off-by: dependabot[bot] <support@github.com>
2019-11-06 10:19:20 -05:00
dependabot[bot]
3b31920819
chore(deps): bump mixin-deep from 1.3.1 to 1.3.2 in /examples/star-wars ( #300 )
...
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep ) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases )
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2 )
Signed-off-by: dependabot[bot] <support@github.com>
2019-11-06 10:19:08 -05:00
dependabot[bot]
31e92e0649
chore(deps): bump mixin-deep in /examples/kitchen-sink ( #299 )
...
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep ) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases )
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2 )
Signed-off-by: dependabot[bot] <support@github.com>
2019-11-06 10:18:57 -05:00
Tim Griesser
17b9afb8ce
Cleanup codegen from examples to make plugins diff less noisy ( #298 )
2019-11-04 15:04:06 -05:00
Jason Kuhrt
e0c5f5458a
docs(example): show nexus + zeit + typescript ( #274 )
...
closes #270
2019-10-18 13:51:39 +02:00
Brice BERNARD
0a77f622e9
Test examples with CI ( #220 )
...
* Update CI config to test examples
* Fix star wars example
* Update yarn.lock of nexus-prisma example
* Fix kitchen-sink example
* Update nexus to beta9 in star wars example
* Upgrade nexus in ts-ast-reader example
* Fix ghost example
* Fix githunt-api example
* Make githunt-api test pass
* Fix nexus-prisma example
* Fix typing in ts-ast-reader
* Use yarn link when nexus deps is already 0.12.0-beta.9
* Remove yarn link from example_ghost
* Make sure generated files are up to date
2019-09-21 16:12:03 -04:00
Tim Griesser
5945d4c661
fix: use ts declaration source maps for better ide dx ( #199 )
...
fixes #189
2019-08-21 22:14:20 -04:00
Tim Griesser
7de5daa1b3
Fix types in Ghost example
2019-07-01 09:11:24 -04:00
Tim Griesser
c141ce2fce
Allow referencing backing types via rootTypings in codegen
2019-06-11 08:38:22 -04:00
Tim Griesser
95e33976a3
Pass typeName to dynamic fields ( #152 )
2019-06-05 10:12:10 -04:00
Tim Griesser
1e932eb4b5
Initial pass at dynamic field inclusion/definition ( #143 )
...
* Initial pass at dynamic field inclusion/definition
* Split input/output custom fields, fixes #93 and #129
* Bump some lib versions
* Change around some dynamic field implementation details
* Make args override collection args
* Rename dynamicField -> dynamicMethod, export types from root
* Add decorateType, ability to specify rootType, fixes #17
2019-06-02 20:29:53 -04:00
Tim Griesser
f78dc7b1b7
Bump example dependency to get rid of Github security warning
2019-05-20 11:41:46 -04:00
Tim Griesser
135dd9c9a3
Regenerate types after bumping TS
2019-05-18 18:23:41 -04:00
Tim Griesser
342dccf265
Bumping TypeScript version for development
2019-05-18 18:01:56 -04:00
Tim Griesser
09abed674a
.list on custom scalar type ( #141 )
...
* Fix #114 - .list on custom scalar type
2019-05-16 23:44:26 -04:00
Tim Griesser
0060cb9ec7
Don't output the version number in typegen
2019-05-16 23:34:41 -04:00
Deni
49b4ac2f9a
Fix apollo-fullstack example ( #80 )
...
* update jest
Jest throws error in earlier version
* Add missing store.sqlite from fullstack-tutorial
This is necessary for any users or trips operation
* Fix typedefs
Fix resolve function for "me" field in query.ts
2019-03-26 12:50:20 -04:00
Tim Griesser
6b3056a787
Upgrade examples dependencies
2019-03-10 13:40:54 -04:00
Tim Griesser
045c35fdab
Bump example versions after release
2019-03-07 20:00:08 -05:00
Tim Griesser
e09d42add6
Add subscriptionField, initial pass at #21 ( #66 )
...
* Add subscriptionField, initial pass at #21
2019-03-07 19:39:40 -05:00
Tim Griesser
18401c465a
Fix #68 , allow nested input types, fix typings for input field default values ( #72 )
2019-03-07 19:38:14 -05:00
Nikolas
78013cf8ee
add nexus-prisma example ( #60 )
2019-02-26 11:22:17 -05:00
Tim Griesser
4e894c2081
Add mutationField shorthand helper ( #58 )
...
* Add mutationField helper, closes #46
2019-02-23 12:25:12 -05:00
Tim Griesser
69f79583d7
Add a field-level authorize property ( #32 )
2019-02-23 11:42:44 -05:00
Tim Griesser
62a858f7ab
Fix #52 , incorrect Symbol type for arg definition ( #57 )
2019-02-22 17:42:33 -05:00
Tim Griesser
f1175c0c21
Add extendInputType ( #54 )
...
* Add extendInputType, fix #51
2019-02-22 17:29:01 -05:00
Tim Griesser
3991317383
Update examples
2019-02-22 14:54:10 -05:00
Tim Griesser
4af597f566
Fix #55 ( #56 )
2019-02-22 14:46:27 -05:00
Tim Griesser
9af376746b
Bump changelog, examples
2019-02-18 18:06:18 -05:00
Tim Griesser
ee1589ae8c
Fix #44 , add correct typing for union types ( #45 )
2019-02-18 18:04:46 -05:00
Tim Griesser
6ce4af08bb
Bump examples
2019-02-15 13:14:38 -05:00
Tim Griesser
fbe836a10f
Bump examples for 0.9.12
2019-02-15 00:06:45 -05:00
Tim Griesser
18a306ee29
Update examples
2019-02-11 11:49:15 -05:00
Tim Griesser
b1003b2fdf
Bump version in examples
2019-02-11 09:04:37 -05:00
Tim Griesser
a8ce7c4b0a
Fix: Remove unused import in ghost example
2019-02-11 09:03:01 -05:00
Tim Griesser
09fcb51b90
Update icons, bump examples
2019-02-05 13:54:24 -05:00
Tim Griesser
7830159417
TypegenConfigSourceModule: sources.module -> sources.source
2019-02-05 10:17:19 -05:00
Tim Griesser
af417a60c9
Fix typing on MaybePromiseDeep
2019-02-05 09:07:45 -05:00
Tim Griesser
cab1931fe7
Update documentation & site
2019-02-05 02:33:57 -05:00
Tim Griesser
92eba456a8
Update Ghost example readme
2019-02-04 10:57:35 -05:00
Tim Griesser
d482283597
Bump examples
2019-02-03 21:05:45 -05:00
Tim Griesser
87932f785d
Add new "ghost" example project (WIP)
2019-02-03 20:44:48 -05:00
Tim Griesser
a74bcf3b14
Bump versions
2019-02-02 17:45:43 -05:00
Tim Griesser
ba4427bc78
Bump versions
2019-02-02 16:16:14 -05:00
Tim Griesser
11588734ee
Bump examples
2019-02-02 12:17:13 -05:00
Tim Griesser
c744568b52
Upgrade example deps
2019-01-31 17:43:18 -05:00
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