Commit Graph

41 Commits

Author SHA1 Message Date
Tim Griesser 0d06f26b12
feat: add GraphQL 16 support (#977) 2022-02-17 12:47:40 -05:00
Jason Kuhrt 1ebae9f2a8 chore: update nexus ver in examples 2020-12-14 14:10:29 -05:00
Flavian Desverne 80ad53135c
improve!: rename package to nexus (#699)
Co-authored-by: Jason Kuhrt <jasonkuhrt@me.com>

COMPLETES INITIAL DEVELOPMENT

BREAKING CHANGE:

You will now need to install Nexus Schema from the npm package `nexus` instead of `@nexus/schema`.
2020-12-14 09:41:29 -05:00
Jason Kuhrt f60938079a
improve: remove resolver shorthands (#592)
closes #582

As discussed. In most cases resolver shorthands are not a serious use of the API.

BREAKING CHANGE:

Resolver shorthand API is now removed. The following will now not typecheck:

```ts
t.string('foo', () => ... )
```

Instead use:

```ts
t.string('foo', { resolve: () => ... })
```

Runtime support is still intact but will result in a logged warning. Runtime support will be removed in the next Nexus release.
2020-11-04 12:03:29 -05:00
Tim Griesser 2bceeb915f
chore: Bumping deps & adding scripts for running examples (#530) 2020-10-03 15:50:56 -04:00
Jason Kuhrt 0ee644b234
feat(deps)!: upgrade to graphql v15 (#486)
closes #410

BREAKING CHANGE:

The graphql peer dep requirement has been bumped to v15.

No graphql v15 exclusive features have been shipped yet. But this update
sets us up to begin that work.

Support for graphql v14 and lower has been dropped. It may technically work
still (the test suite did not show any major reasons why it won't, for
now/currently) but there is no guarantee about that remaining so in the
future. Internally we are only testing against v15. Certain new grpahqljs
v15 features like interfaces being able to implement other interfaces will
be released in the future.

If you absolutely cannot upgrade from graphql v14 right now then stay with
@nexus/schema v15. But if you also really need a new @nexus/schema feature
on v16+ (future) then you can try your luck with it an older version of
graphqljs.
2020-08-07 16:12:15 -04:00
Tim Griesser a10463e77c
chore: update lockfile entries (#404)
* chore: update lockfile entries
* fix: link-examples for website
2020-03-31 12:33:16 -04:00
Jason Kuhrt 7d4dba0515 docs: update examples to @nexus/schema 2020-03-30 15:03:06 -04:00
Tim Griesser d878c9d620 Bump local dependencies 2020-02-11 11:59:07 -05:00
Bjorn Lu 14fcbcdc22
feat: Add queryComplexityPlugin for query cost analysis (#369)
* Add graphql-query-complexity package

* Add query complexity plugin

* Add tests

* Add example

* Add docs

* Remove redundant async
2020-02-10 19:00:45 -05:00
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
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 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 342dccf265 Bumping TypeScript version for development 2019-05-18 18:01:56 -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 62a858f7ab
Fix #52, incorrect Symbol type for arg definition (#57) 2019-02-22 17:42:33 -05:00
Tim Griesser 3991317383 Update examples 2019-02-22 14:54:10 -05:00
Tim Griesser 9af376746b Bump changelog, examples 2019-02-18 18:06:18 -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 09fcb51b90 Update icons, bump examples 2019-02-05 13:54:24 -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 f856feb2e5 More general cleanup 2019-01-06 19:42:41 -05:00
Tim Griesser 8031fbae21 Renaming to nexus 2018-12-10 17:37:03 -05:00
Tim Griesser 08f060b8ea GraphQLiteral -> GraphQL Nexus 0.1.0 2018-12-06 11:35:59 -05:00
Tim Griesser 7bcd104b6c Add script to upgrade example versions 2018-12-01 17:28:41 -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