hasura / hasura/graphql-engine

Reload multiple remote schemas as once

Open
#7,998 0 comments 0 reactions 0 assignees View on GitHub
k/bug
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

### Version Information

Server Version: 1.3.0
CLI Version (for CLI related issue):

### Environment

Docker

### What is the expected behaviour?

We have 2 remote schema setup and both these schemas define a type, e.g. `PageInfo`. This type has been updated, so we need to reload the schemas to pull in the changes. However it's not possible to update them because when I try to update one of them it fails with `cannot continue due to newly found inconsistent metadata`. This will be because it's trying to update the remote schemas in sequence, which means when one is updated there will be a mismatch in the `PageInfo` type.

Is there a way to reload all remote schemas at once to get around this issue?

### Keywords
`reload_remote_schema`
`cannot continue due to newly found inconsistent metadata`

### How to reproduce the issue?

1. Add 2 remote schemas that share a type
2. Update the type in both remote schemas
3. send `reload_remote_schema` to reload the schema

Contributor guide

Open the contributing guide

Research direction

Start at the reload_remote_schema entry point and reproduce the case with two remote schemas that share PageInfo, as described in the issue. Trace how schema reloads are sequenced and how inconsistent metadata is detected; done means both schemas can be reloaded together without the intermediate mismatch blocking the operation.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.