System Information
“@strapi/plugin-graphql”: “4.2.0”,
“@strapi/strapi”: “4.2.0”,
As we all know, strapi graphql v4 changed its grammar. Can I have a easier way(not manually) to change my v3 grammar to v4 grammar? And some codes I build query with gql-query-builder
, v3 just works fine, can I just a wrapper or converter to make it works on v4 graphql?
Btw, I don’t know why v4 grammar contains a lot of noisy information, like data
, attributes
things…
query {
users {
username
email
}
}
strapi v4 graphql query, the field nested under attributes
query {
documents {
data {
id
attributes {
title
categories {
data {
id
attributes {
name
}
}
}
}
}
meta {
pagination {
page
pageSize
total
pageCount
}
}
}
}