Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jason Bahl

    (@jasonbahl)

    @isaacmtait I’m not sure why the code isn’t working for you.

    I pasted the code in my browser console and I was able to execute and get results back.

    see: https://cloudup.com/cGL2sdtWC-b

    Maybe double check your API_URL?

    I’m going to mark this as resolved as I don’t believe this appears to be an issue with the WPGraphQL plugin.

    For general questions and discussions like this, I recommend checking out the WPGraphQL Slack (join here)

    Thread Starter isaacmtait

    (@isaacmtait)

    Thank you for taking a look at it Jason. The cloudup video was pretty cool too. I had a great debugging session with a user from the NextJS Discord server and he helped me ascertain what was going on (de-structuring issues and I was also not passing through the right parameters to the components) Here is the commit that got me squared away in case anyone else in the future experiences this issue or a similar one
    https://github.com/Isaac-Tait/wordpress_nextjs/commit/fdbf7142ecb5138565b7d34181f1dabc3e6951a8

    You are correct – the issue is resolved and it was not a WPGraphQL issue either.

    • This reply was modified 1 year, 4 months ago by isaacmtait.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘NextJS & Headless WordPress api function returning undefined’ is closed to new replies.