brightspot-cms icon indicating copy to clipboard operation
brightspot-cms copied to clipboard

Question: Adding GraphQL Support to BSP

Open flaviotsf opened this issue 6 years ago • 1 comments

Are there any plans on adding a GraphQL layer to the BSP CMS?

I think it would be awesome if you could query BSP items using GraphQL.

That would make it an excellent approach for those who may want to use BSP as a headless CMS or for those who are planning to create more UI modules using React or similar front-end frameworks.

Something like

query {
  allContent(filter: {
    templateId: '_id_'
  }) {
    id
    title,
    author { name, headshot },
    leadImage { crops, caption }
  }
}

flaviotsf avatar Dec 06 '18 04:12 flaviotsf