Skip to content

Add flag on command to introspect schema with Apollo Federation compatible layer #7209

@noghartt

Description

@noghartt

Today, if you run the command like: hive introspect [url], it loads the schema like this:

schema {
  query: Query
  mutation: Mutation
}

# ...

Comparing with rover CLI, that's how they bring the same introspected schema:

extend schema
  @link(url: "https://specs.apollo.dev/link/v1.0")
  @link(url: "https://specs.apollo.dev/federation/v2.0", import: ["@key", "@shareable", "@external", "@override", "@requires"])
{
  query: Query
  mutation: Mutation
}

# ...

I do believe that could be possible to add a flag on introspect commmand to let it be introspected with this Apollo Federation layer of compatibility.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions