Select Operator and Reference Properties

Is it possible to specify fields from reference content types using the select operator with the Contene Delivery API? If not, is it possible using GraphQL?

This isn’t possible with the Rest APIs, but it is possible with the GraphQL API. Here’s an example adapted from our Getting Started with GraphQL Content API tutorial:

{
  lessonCollection {
    items {
      title
      slug
      modulesCollection(limit: 2) {
        items {
          __typename
          ... on LessonImage {
            title
            image {
              url
            }
          }
          ... on LessonCodeSnippets {
            title
            javascript
          }
          ... on LessonCopy {
            title
            copy
          }
        }
      }
    }
  }
}

Great - thanks Charlie. Will GraphQL be available soon on the smaller spaces including micro?

Answer from support: This is a topic that our Sales and Product teams are discussing. As yet, we haven’t decided whether to release GQL as a feature on plans smaller than Large.

FYI GraphQL is available on our new free community plan. https://www.contentful.com/pricing/