You can download the CLI for the latest Framework version by running npm install -g graphcool
.
See the Forum for more information on the Framework Preview.
-
Improved importing npm modules:
-
Improved error message and cosmetics:
-
The service definition for upgraded projects has been improved: prisma#873
-
graphcool init
- Temporarily removed
--template
parameter prisma#950
- Temporarily removed
- Version 0.1.4 of
graphcool-lib
has been released. Read the release notes here.
-
The function context has been streamlined for all function types.
-
Fixed deploying operationBefore and operationAfter functions.
-
General error message improvements:
-
You can now refer to single GraphQL operations in .graphql files.
-
Referring to modules in
graphcool.yml
is now detected, and you're asked to use templates instead. -
All dependencies are explicitely specified now, as described here, here and here.
-
graphcool init
- Improved output as described here and here.
- Initial
package.json
does not refer toindex.js
anymore. - It's now possible to initialze a service in a non-empty folder.
-
graphcool deploy
- Errors are caught before showing the deploy wizard.
- Deploying to not running local cluster is handled gracefully.
- Introduced an error that detects missing node_modules when modules are required or imported in any function. Built-in modules are ignored.
- Deploying also works when using symlinks.
- Prevent accidental deploy.
- Improved error message for missing schema file of resolver functions.
- Updated environment variables are correctly deployed.
- Fixed a problem with deploying when the parent directory contains a .graphcoolrc file.
-
graphcool diff
-
graphcool add-template
-
graphcool root-token
-
graphcool invoke-local
-
graphcool local
-
graphcool logs
-
graphcool console
- Version 0.1.3 of
graphcool-lib
has been released. Read the release notes here.
- A new local development workflow for functions is available. Additionally, there is a new & improved function runtime when deploying a service to a remote cluster, as well as in the local
graphcool-dev
environment. - You can now add templates to the service definition with a new add-template command.
- The initial project structure after upgrading a project to the Framework has been changed.
- Added GRAPHCOOL_PLATFORM_TOKEN env var.
- Removed the env command. From now on
.graphcoolrc
is used to control deploy targets. - The CLI now can be run with node 6+.
- The CLI now reauthenticates if an invalid session is found.
- Service aliases with dashes are now supported in the CLI.
- Fixed a problem with the confirmation when deleting projects.
- graphcool init does not deploy the service anymore.
- Improved usage texts in general and for delete.
- Added divider for project list.
- Improved output for written files.
- Allow .graphcool file in current folder.
- Search project configuration in parent folders.
- Deleting projects now asks for configuration in all cases.
- Introduced a shorthand notation for function code handlers.
- Renamed get-root-tokens to root-tokens.
- Added basic account command.
Currently, permission queries can't contain a header section, which will be changed soon. More information here.
Valid function names only use up to 64 alphanumeric letters, dashes and underscores. This is only checked when creating a new or updating an existing function and does not affect existing functions before updating them.
- Renamed Permanent Authentication Tokens (PATs) to Root Tokens.
- Renaming relations requires usage of @rename directive with oldName parameter.
- Schema Extensions are renamed to Resolvers.
- The system fields createdAt and updatedAt are now optional.
- The payload type of a resolver is now taken into account when validating the payload. This applies to required payload types as well as list payload types.
- Fixed a bug that affected subscription queries using variables of type ID.
- Fixed a bug that prevented default values from being deleted.
- Fixed a bug when changing a unique Int field to a unique String field.
- Fixed several issues when migrating float fields.
- Fixed a bug where using an invalid type in a resolver schema resulted in an internal server error.
- Fixed a bug that prevented scalar list input fields for resolvers.
- Fixed a bug when returning null for a string in a resolver.
- Fixed a bug when creating two types of same name a resolver.
See the Forum for more information on the Framework Preview.
Note: The latest CLI version of the Framework Preview is currently available in version 1.4. This will soon be corrected to version 0.4 instead.
- Wildcard permissions have been introduced that can be used to match all operations. The project configuration of a new project created with the CLI includes the wildcard permission by default.
- Added support for Modules in the project configuration.
- Environment variables can now be used for Graphcool Functions using the CLI.
- Added Root Token support in project configuration.
- Projects will not receive default public permissions for new fields/models.
- When deploying, subscription queries are now validated first. Also see here.
- User and File system types not included by default in projects created with the CLI.
- The module command has been renamed to modules.
- The --version command is now available.
- Changes for diff and deploy are now better grouped.
- Fixed a bug for displaying 504 and 502 error messages and other errors.
- Fixed a bug that caused unnecessary updates to scalar list fields when deploying.
- Fixed a bug that caused deploys to not being aborted when errors occured.
- Fixed a bug with the diff command for breaking changes.
- Fixed a bug when renaming a type with relations and deploying.