Skip to content

feat: support juniper 0.17#2

Open
li-yifei wants to merge 1 commit into
masterfrom
feature/juniper0.17
Open

feat: support juniper 0.17#2
li-yifei wants to merge 1 commit into
masterfrom
feature/juniper0.17

Conversation

@li-yifei
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates juniper-compose to work with Juniper 0.17.x by aligning both crate dependencies and macro-generated trait impls with Juniper’s updated APIs, and adds a basic integration test to validate composed query behavior.

Changes:

  • Bump juniper-compose / juniper-compose-macros versions to 0.17.0 and update the Juniper dependency to 0.17.1.
  • Update macro expansions to match Juniper 0.17 trait signatures (e.g., ArcStr, updated Registry/MetaType signatures).
  • Add an integration test exercising a composed Query exposing fields from multiple composable objects.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
juniper-compose/tests/compose.rs Adds an integration test validating a composed query exposes all fields.
juniper-compose/src/lib.rs Adjusts docs/doctest fences and simplifies type_to_owned for Juniper 0.17 Type behavior.
juniper-compose/Cargo.toml Bumps crate + dependency versions for Juniper 0.17 support.
juniper-compose-macros/src/lib.rs Updates generated Juniper trait impls to match 0.17 API changes.
juniper-compose-macros/Cargo.toml Bumps macro crate version to 0.17.0.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

impl ::juniper::GraphQLType for #name {
fn name(info: &Self::TypeInfo) -> ::std::option::Option<&str> {
::std::option::Option::Some(#name_lit)
fn name(info: &Self::TypeInfo) -> ::std::option::Option<::juniper::ArcStr> {
Comment on lines +46 to +49
assert_eq!(
value.to_string(),
"{\"userName\": \"alice\", \"taskCount\": 3}"
);
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.

2 participants