hasura / hasura/graphql-engine
Is it possible to add Global Object Identification to the schema? #federation
- 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
Assessment
This issue has not been assessed yet.