Title: Apollo client
Last modified: March 30, 2021

---

# Apollo client

 *  Resolved [Jenish Shrestha](https://wordpress.org/support/users/jenish11/)
 * (@jenish11)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/apollo-client/)
 * I am using WordPress and Next js with Apollo client.
 * I have a custom post type in WordPress named Work.
 * If I query in graphql IDE like: **work(id: “slug-of-page”, idType: SLUG) {}**,
   its giving me exact data.
 * But apollo client returns null data.
 * If i use **workBy(uri: “uri-of-page”) {}** instead, apollo client returns data
   properly.
 * I am confused on where to ask help for this.
    -  This topic was modified 5 years, 2 months ago by [Jenish Shrestha](https://wordpress.org/support/users/jenish11/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jason Bahl](https://wordpress.org/support/users/jasonbahl/)
 * (@jasonbahl)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/apollo-client/#post-14270245)
 * [@jenish11](https://wordpress.org/support/users/jenish11/) the `{$postType}By`(
   in your case `workBy`) field has been deprecated for quite some time.
 * If you want to query a post of a custom post type by uri, you can do so with:
 *     ```
       {
         work( id:"/path/to/post" idType: URI ) {
           id
           ...otherFields
         }
       }
       ```
   
    -  This reply was modified 5 years, 2 months ago by [Jason Bahl](https://wordpress.org/support/users/jasonbahl/).

Viewing 1 replies (of 1 total)

The topic ‘Apollo client’ is closed to new replies.

 * ![](https://ps.w.org/wp-graphql/assets/icon-256x256.png?rev=3561150)
 * [WPGraphQL](https://wordpress.org/plugins/wp-graphql/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-graphql/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-graphql/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-graphql/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-graphql/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-graphql/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jason Bahl](https://wordpress.org/support/users/jasonbahl/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/apollo-client/#post-14270245)
 * Status: resolved