Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Using GraphQL SDL files as Executable API Contr...

Using GraphQL SDL files as Executable API Contracts

How GraphQL SDL files can be leveraged for Contract Testing, Mocking, and Backward Compatibility Checks to shift left the identification of contract compatibility issues — enabling alignment between frontend and backend teams without relying on integration tests.

Avatar for HariKrishnan

HariKrishnan

May 19, 2025
Tweet

More Decks by HariKrishnan

Other Decks in Programming

Transcript

  1. © 2025 All Rights Reserved Using GraphQL SDL files as

    executable API Contracts HariKrishnan83 Hari Krishnan Co-Founder and CTO
  2. © 2025 All Rights Reserved Broken Integration type Product {

    id: ID! name: String! inventory: Int! type: ProductType! } findAvailableProducts( type: ProductType!, pageSize: Int ): [Product] findAvailableProducts( type: ProductType!, pageSize: Int! ): [Product] type Product { id: ID! name: String inventory: String type: ProductType! }
  3. © 2025 All Rights Reserved GraphQL Mocking Starting a GraphQL

    Mock Server in seconds using GraphQL SDL Files #NOCODE
  4. © 2025 All Rights Reserved Live Demo Component Testing the

    Front End with Mock GraphQL Backend #NOCODE
  5. © 2025 All Rights Reserved • Shift Left all the

    way to Design • Reduced time-to-market due to Parallel Development • Enhanced DevEx with improved Collaboration • Resilient API Building Blocks Contract Driven Development
  6. © 2025 All Rights Reserved Thank You! Hari Krishnan Co-Founder

    and CTO HariKrishnan83 harikrishnan83 harikrishnan83