How to apply alias in @key field in apollo federation

How to apply alias in @key field in apollo federation


0

type oPlayer @key(fields: "id") @key(fields: "name"){
 id:ID
 name: String
}
extend type oPlayer @key(fields: "name") @key(fields: "PlayerId") 
{
 name: String @external
 PlayerId: ID @external
}

I am tring to resolve that field using PlayerId field with id but I am not able get data in referance resolver How to provide alias to "PlayerId:id" so oPlayer type can resolve field
I want that apollo federation allow to give alias for PlayerId to id so it can easily resolve fields


Load 3 more related questions


Show fewer related questions

0



Leave a Reply

Your email address will not be published. Required fields are marked *