Questions tagged [wordpress-graphql]

3 questions
0
votes
1 answer

Apollo GraphQL client data is undefined when using fragments

I've a Next.js project using the Apollo GraphQL client 3.7.17, where the following code works for me: const { loading, data, error } = useQuery(gql` query GetTeamCurrentWeek($teamId: ID!) { team(id: $teamId, idType: DATABASE_ID) { …
linucks
  • 687
  • 1
  • 8
  • 14
0
votes
0 answers

Query gallery items using wp-graphql

I am converting a WordPress website to use Next.js with wp-graphql. The site has a gallery category, and the gallery posts contain multiple images. I need to query the gallery items using wp-graphql, I can't use ACF. I tried to register a gallery…
ilyes
  • 1
0
votes
0 answers

WPGraphQL Can't filter or query fields in custom post types

I made a custom post type for events but I am not able to filter using (eventID: $id) or even with the where clause. I am pretty new to GraphQL but the documentation implies it should be possible. I created this custom post type with Custom Post…