grafbase

The GraphQL Federation platform

APACHE-2.0 License

Downloads
47.3K
Stars
1.1K
Committers
22

Bot releases are visible (Hide)

grafbase - 0.18.0-rc.6

Published by github-actions[bot] over 1 year ago

Fixes

  • Update the expected resolvers' signature from ({ parent, args, context, info }) to (parent, args, context, info)
  • Build resolvers concurrently.
  • Adjust the output messaging when resolvers are being built.

Performance

  • Reduce memory consumption required in schema introspection.
grafbase - 0.18.0-rc.5

Published by github-actions[bot] over 1 year ago

Features

  • Add initial support for custom resolvers written in JavaScript or TypeScript.
  • Add unlink and link commands.
  • Change the auth configuration to require an API key in the locally running gateway.
  • Allow environment variables to be interpolated in any string in the schema.

Performance

  • Fixed some inefficiencies in handling introspection queries.
grafbase - 0.18.0-rc.4

Published by github-actions[bot] over 1 year ago

Fixes

  • Environment variables are now supported in all string arguments to @openapi
  • OpenAPI specifications will no longer select responses that aren't
    application/json
grafbase - 0.18.0-rc.3

Published by github-actions[bot] over 1 year ago

Features

  • Adds a create command to setup and deploy a new project from the command line.
  • Adds a deploy command to deploy a project from the command line.

Changes

  • The top level namespacing @openapi types are no longer optional.
  • The names of @openapi queries have been improved for APIs with well
    structured specifications
  • The names of @openapi union types have been improved.
  • All CLI output is now capitalized into sentence case
  • Exit codes from the CLI are no longer compatibel with sysexit
grafbase - 0.18.0-rc.2

Published by github-actions[bot] over 1 year ago

This release is the same as 0.18.0-rc.1

Features

  • Adds an @openapi directive that generates queries and mutations that call an API described by an OpenAPI specification.
  • Added grafbase login & grafbase logout commands

Fixes

  • Fixes a panic in schema parsing if a users type had underscores in its name.
  • Fixes a panic in schema parsing if the name of a users type clashed with a generated type.
  • Fixes a panic when a missing input argument is passed to a mutation
grafbase - 0.17.0

Published by github-actions[bot] over 1 year ago

Features

  • Adds an optional fields parameter to @unique to support uniqueness across multiple fields (A + B are unique, but one of A or B can be non unique)
    • When using @unique with fields (e.g. first: String! @unique(fields: ["second"])), by queries will be of the form myTypeUpdate(by: { firstAndSecond: { first: "a", second: "b" } })

Fixes

  • Fixes an issue preventing non @model types marked as optional on a parent type from having required fields
grafbase - 0.16.0

Published by github-actions[bot] over 1 year ago

Breaking

  • Hashes the value of @unique items to reduce ID length
    • Previously stored items will not behave correctly

Features

  • Supports ordering by the createdAt field
  • Modifies the PhoneNumber scalar to follow the E.164 format
  • Ensures that the ULID time component is equal to the createdAt field
  • Adds support for identity providers that use the same issuer for multiple applications

Fixes

  • Fixes the formatting of an unknown argument error
  • Fixes a few instances of input coercion to be in line with the GraphQL spec
grafbase - 0.15.0

Published by github-actions[bot] almost 2 years ago

Features

  • Integrates the website playground
  • Supports using Grafbase and external templates with the init command

Fixes

  • Fixes a race condition when updating an item that would result in a stale response
  • Fixes the @default directive
  • Fixes a missing field issue when creating nested relations
  • Fixes formatting for dates and phone numbers
  • Fixes OpenSSL being required on Linux

Tooling

  • Sets the Rust toolchain channel to 1.66
grafbase - Grafbase CLI 0.14.1

Published by Finistere almost 2 years ago

Breaking

  • Supports atomic numerical operations
    • Int and Float types in update mutations now accept a @oneof object with either set, increment or decrement

Features

  • Supports live queries
  • Adds support for field level auth
  • The ID field is no longer required to be specified in a @model type
  • Pagination cursors are now base64

Fixes

  • Fixes pagination ordering (now always oldest to newest)
  • Fixes a case where errors in the CLI bridge server may not be reported

Tooling

  • Updates Rust to version 1.66.0

Dependencies

  • Updates axum and sysinfo
grafbase - Grafbase CLI 0.13.0

Published by github-actions[bot] almost 2 years ago

Features

  • Adds support for the JWT auth provider

Fixes

  • Fixes a race condition in unique constraint errors
  • Fixes a panic that occurred when using an empty string as the OIDC issuer URL
  • Fixes schema parsing issues involving nested types
grafbase - Grafbase CLI 0.12.0

Published by github-actions[bot] almost 2 years ago

Features

  • Adds support for @length directive
  • Adds support for model level @auth directive
  • Adds support for the Date scalar
grafbase - 0.11.1

Published by github-actions[bot] almost 2 years ago

Tooling

  • Updates Rust to 1.65.0
grafbase - Grafbase CLI 0.11.0

Published by yoav-lavi almost 2 years ago

Breaking

  • Supports mutating by unique fields
    • This changes mutations by id from entityMutation(id: "...") to entityMutation(by: { id: "..." })

Features

  • Supports nested group claims for OIDC

Fixes

  • Fixes an issue causing relations not to be updated after an initial mutation
  • Prints the CLI header when running the reset command
grafbase - Grafbase CLI 0.10.0

Published by yoav-lavi about 2 years ago

Breaking

  • Supports querying by unique fields
    • This changes queries by id from entity(id: "...") to entity(by: { id: "..." })

Dependencies

  • Updates clap to version 4
grafbase - Grafbase CLI 0.9.1

Published by yoav-lavi about 2 years ago

0.9.1

Fixes

  • Reverts clap to version 3 temporarily

0.9.0

Features

  • Adds support for the @default directive
  • Adds createdAt and updatedAt fields to @model types

Dependencies

  • Updates clap to version 4

Tooling

  • Updates Rust to version 1.64.0
grafbase - Grafbase CLI 0.8.0

Published by yoav-lavi about 2 years ago

Breaking

  • Adds support for paginated relations

Features

  • Adds support for OpenID Connect authorization

Fixes

  • Fixes a typo in the output of the init command (thank you @ajcwebdev!)

Tooling

  • Adds a nextest configuration limiting tests to run one at a time
  • Updates miniflare to version 2.9.0
grafbase - Grafbase CLI 0.7.0

Published by yoav-lavi about 2 years ago

Features

  • Adds support for environment variables
    • Supports grafbase/.env and process environment variables, with grafbase/.env being higher priority
  • Adds support for the PhoneNumber scalar

Dependencies

  • Updates Miniflare to 2.8.2

Tooling

  • Changes the minimal supported Node.js version to 16.13.0 to match Miniflare 2.8.2
grafbase - Grafbase CLI 0.6.0

Published by yoav-lavi about 2 years ago

Features

  • Adds support for new scalars:
    • JSON
    • URL
    • Email
    • Timestamp
    • IPAddress

Fixes

  • Fixes cursor support in paginated queries
  • Fixes result ordering in paginated queries using last

Refactoring

  • (internal) Changes queries to use named SQL params in the Gateway worker
grafbase - Grafbase CLI 0.5.1

Published by yoav-lavi about 2 years ago

Fixes

  • Fixes support for GraphQL enums
grafbase - Grafbase CLI 0.5.0

Published by yoav-lavi about 2 years ago

Features

  • Adds support for the DateTime scalar
  • Adds a reset command (removes local data for a project)

Tooling

  • Updates Rust to 1.63.0
  • Bundles and minifies some of the embedded assets
    • Slightly reduces overall size and solves an incompatibility issue in wasm-pack when targeting Node.js