Faulty Generated GraphQL Schema

System Information
  • Strapi Version:4.0.0
  • Plugin GraphQL Version:4.0.0
  • Operating System: macOS
  • Database: SQLite
  • Node Version: 16.13.1
  • NPM Version:
  • Yarn Version:

The schema calls for the ‘data’ and ‘attributes’ object. So when querying data I have to do:

query {
  streets {
    data {
      attributes {
        name
      }
    }
  }
}

But it’s supposed to be:

query {
  streets {
    name
  }
}

Is there a way around this?

Hello, try use it : Transformer | Strapi Market