GraphQL API Federation, compound keys

Hello! I have a question about Tyk GraphQL API federation.

Does Tyk support compound keys (nested key fields) as shown in the example below:

type User @key(fields: "id organization { id }") {
  id: ID!
  organization: Organization!
}

type Organization {
  id: ID!
}

Please notice the composite entity key that consists of User.id and Organization.id when the latter one is specified by a nested field.

The example is taken from here: Advanced topics on federated entities - Apollo GraphQL Docs

Hi @Andrey_Nado, I am checking this internally and would get back to you

1 Like

No support for compound keys yet. We do have it on our list but there is no written roadmap.

Once there is an update, I will come back to update this thread.

2 Likes

Hi do you have update for this issue?

I have asked for an update internally and will reply once I get a response. The last piece of info Iā€™m aware of (as of Q4 last year) is that further developments on GraphQL federation are on hold.

@midnight Are you planning on going into production with our current implementation of federation?

Yes we are planning to go into production with current federation, but this compound key not being supported makes the schema a little bit redundant. We flatten the key by adding another field at the same level