GraphQL with multiple file upload (pods)

[ad_1]

Hey, I have a question. I am using WordPress as a headless CMS and fetch the data through GraphQL. Now I want to create a download section for my client.

I set up a new custom post type (“downloads”) which contains a title a multiple file upload field. There you can upload one or multiple pdf. So far so good.

When I try to fetch the data, I get the correct title of the post and I can see the file node. But every field returns “undefined”, so I can’t fetch the URL and the Name.

Did somebody have the same problem? What am I doing wrong?

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer