Graphql how can i replace the required (id: ID!) field with a (slug: String)

anyone find solution for this in graphql?