Create fragments in Graphql v4

Hi everybody!
I’m trying to create a following graphql fragment in strapi v4 without success:

Fragment BannerFragment on Banner {
image {
url
}
title
subtitle
button {
label
link
}
ribbon {
text
color
size
}
}

query QueryHome {
banners {
…BannerFragment
}
}

I was able to create the QueryHome in the format, but the fragments doesn’t go through:
query QueryHome {
banners {
data {
attributes {
image {
data {
attributes {
url
}
}
}
title
subtitle
button {
label
link
}
ribbon {
label
color
size
}
}
}
}
}