Actually am new on strapi, using gatsby to fetch data,
Actually i want to dynamically generate the form fields based on the fields defined in Strapi backend,
so want to get metadata of collection type of strapi,like fields name, type etc,as strapi does not provide direct API to fetch this.
So, am trying by query so when i run using gatsby server like below
http://localhost:8000/___graphql
query {
type(name: “Form”) {
fields {
name
type {
name
}
}
}
}
showing output
{
“data”: {
“type”: null
},
“extensions”: {}
}
I have checked every permission, name etc all are correct.
Please help me am stuck here.
Thanks in Advance.
<#1019655562092355594> <#1083436238410878997>
This topic has been created from a Discord post (1225773549017497621) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord