hasura / hasura/graphql-engine

Is it possible to add Global Object Identification to the schema? #federation

Open
#3,645 1 comment 1 reaction 0 assignees View on GitHub
c/server
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

I'm trying to understand if Hasura can join the stack of services already present in the company.

From a quick look in the docs I did not understand if it is possible to add to the schema information requested by https://github.com/nautilus/gateway.

I'm talking about the "Global Object Identification" (https://graphql.org/learn/global-object-identification/).

Example (as explained here: https://alec.aivazis.com/blog/schema-federation/getting-started):

> **The Node interface**
> The only requirement that schema federation imposes on a service is that it must satisfy the Relay Global Object Identification Specification. This sound a lot more intimidating than it really is. Basically each service must have a Node interface that looks like this:

```graphql
interface Node {
id: ID!
}
```
> This id field must be globally unique and be usable as an identifier to retrieve that specific record from a field on the root of the service’s API:

```graphql
type Query {
node(id: ID!): Node
}
```
> For reasons that will become clear later, each boundary type must implement Node for schema federation to work.

**Is it possible today?**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.