I have a problem with Gatsby, I have a type conflict in Link relation in WordPress
Fields "button" conflict because they return conflicting types AcfLink and String. Use different aliases on the fields to fetch both if this was intentional.
Error path: undefined
in query request
button {
url
title
}
How do I resolve this conflict
You can alias both fields with:
After that, you will need to refer to each field using
button.newName1
andbutton.newName2
respectively.GraphQL aliases docs: https://graphql.org/learn/queries/#aliases