I want to have a fragment that looks something like this.
fragment RegularUser on Barber | Client {
id
username
}
So I can use it in my mutation as follows
mutation Register($options: RegistrationInput!) {
userRegister(options: $options) {
user {
...RegularUser
}
errors {
field
message
}
}
}