Skip to content

refactor(graphql): switch from apollo-compiler to bluejay - #302

Open
amnn wants to merge 1 commit into
amnn/gql-flattenfrom
amnn/gql-bluejay
Open

refactor(graphql): switch from apollo-compiler to bluejay#302
amnn wants to merge 1 commit into
amnn/gql-flattenfrom
amnn/gql-bluejay

Conversation

@amnn

@amnn amnn commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

Description

Use bluejay for GraphQL query parsing and validation in the macro, instead of apollo-parser. This cuts down the number of dependencies pulled in by the macro (inclusive) from 74 to 39 (a reduction of almost half -- 35 dependencies removed).

bluejay is the GraphQL stack from Shopify. It offers the same functionality modulo error message wording, but with less of a hit on build times.

A reduction of 35 dependencies makes a big difference to a project like jellyfish.

Test plan

Run existing tests:

cargo nextest run -p sui-graphql-macros

Check dependency tree:

$ cargo tree -p sui-graphql-macros -e normal --prefix none \
     | sed 's/ (\*)$//' \
     | sort -u \
     | wc -l
39

## Description

Use `bluejay` for GraphQL query parsing and validation in the macro,
instead of `apollo-parser`. This cuts down the number of dependencies
pulled in by the macro (inclusive) from 74 to 39 (a reduction of almost
half -- 35 dependencies removed).

`bluejay` is the GraphQL stack from Shopify. It offers the same
functionality modulo error message wording, but with less of a hit on
build times.

A reduction of 35 dependencies makes a big difference to a project like
jellyfish.

## Test plan

Run existing tests:

```
cargo nextest run -p sui-graphql-macros
```

Check dependency tree:

```
$ cargo tree -p sui-graphql-macros -e normal --prefix none \
     | sed 's/ (\*)$//' \
     | sort -u \
     | wc -l
39
```
@amnn
amnn requested a review from tpham-mysten August 14, 2026 17:43
@amnn amnn self-assigned this Aug 14, 2026
@amnn
amnn requested a review from bmwill as a code owner August 14, 2026 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant