Skip to content

It's a wordpress plugin which given some extensions functionality which is officially not available in wp-graphql wordPress plugin.

Notifications You must be signed in to change notification settings

PatSosna/wp-graphql-nexgi-extension

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

wp-graphql-nexgi-extension

I develop headless wordpress blogs using nextjs & gatsby and use graphQL as flexible data fetching. For that I'm using wp-graphQL official plugin.

Dependiencies

Features

Total number of posts, pages count in graphQL wordpress

feature information

Added an options to get total number of posts, pages or any custome post type of wordpress using grpahQL. This originally given here . But here I coveted into wordpress graphQL plugin.

How to use it

Total number of pages

{
  pages{
    pageInfo{
      total
    }
  }
}

Response

{
  "data": {
    "pages": {
      "pageInfo": {
        "total": 14
      }
    }
  }
}

Total number of posts

{
  posts{
    pageInfo{
      total
    }
  }
}

Response

{
  "data": {
    "posts": {
      "pageInfo": {
        "total": 14
      }
    }
  }
}

About

It's a wordpress plugin which given some extensions functionality which is officially not available in wp-graphql wordPress plugin.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%