[Feat] strapi v4 with graphql
See original GitHub issueDescribe the bug I suspect there is a bug, but not sure.
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
}
}
}
}
In refine, it will query like this:
{
"query": "query ($where: JSON, $sort: String, $start: Int, $limit: Int) { symptomsConnection (where: $where) { aggregate { count } } symptoms (sort: $sort, where: $where, start: $start, limit: $limit) { name } }",
"variables": {
"where": {},
"sort": "id:asc",
"start": 0,
"limit": 10
}
}
- Does the
symptoms { name }
seems use strapi v3 graphql grammer? - There are also error messages on request :
...
"Cannot query field \"symptomsConnection\" on type \"Query\"."
...
"Unknown argument \"where\" on field \"Query.symptoms\"."
...
Do I missing something? Or @pankod/refine-strapi-graphql is used for strapi V3?
deps “@pankod/refine-strapi-graphql”: “3.25.6”, “@pankod/refine-strapi-v4”: “3.25.6”,
backend deps “@strapi/plugin-graphql”: “4.2.0”, “@strapi/strapi”: “4.2.0”,
Issue Analytics
- State:
- Created a year ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Get started with GraphQL - Strapi Developer Docs
Use the GraphQL plugin in your Strapi project to fetch and mutate your content.
Read more >[Feat] strapi v4 with graphql · Issue #1971 · refinedev/refine
Describe the bug I suspect there is a bug, but not sure. strapi v3 graphql query query { users { username email }...
Read more >How to Build a Product Information Manager Using Strapi
A step-by-step guide to implementing a product information manager with Strapi and creating a storefront with Next.js.
Read more >Strapi Module - Nuxt
Design APIs fast and manage content easily using REST or GraphQL. ... feat: migrate module to nuxt3 + support strapi v4 by @benjamincanac...
Read more >Strapi Releases v4 of Headless CMS, Enhances Plugins ...
Strapi, an open source headless CMS, just announced the release of Strapi v4. The platform's latest version offers a reworked core, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
After some research, except for some technical issues, I find the support to v4 graphql support should be delay.
Lots of complains are found in strapi forum. I guess there would be some changes in the future.
And some technical issues includes:
@omeraplak close this issue or just leave it to wait?
Sorry to hear that. We should clearly state this in our documents