react-apolloapollo-clientgraphql-tools

What is the difference between makeExecutableSchema & buildClientSchema in Apollo GraphQL


I'm trying to build a mocking infrastructure for our react client. Getting confused between the two.


Solution

  • buildClientSchema vs makeExecutableSchema

    If you want to mock and test the return (query) data use makeExecutableSchema if is just to test the schema type definitions use buildClientSchema.

    It always comes into what you need to test.